home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Information / Digests / MacScripting Digest / The Digests / mac-script-94-09.txt < prev    next >
Encoding:
Internet Message Format  |  1994-11-02  |  543.1 KB  |  [TEXT/R*ch]

  1. Return-Path: LISTSERV@DARTCMS1.DARTMOUTH.EDU
  2. Received: from dartcms1.dartmouth.edu by lks.lks.csi.com (5.65/6.930123)
  3.      with SMTP id AA09574; Mon, 10 Oct 94 12:08:09 -0500
  4. Message-Id: <9410101708.AA09574@lks.lks.csi.com>
  5. Received: from DARTCMS1.DARTMOUTH.EDU by DARTCMS1.DARTMOUTH.EDU
  6.    (IBM VM SMTP V2R2) with BSMTP id 1509; Mon, 10 Oct 94 13:20:05 EDT
  7. Received: from DARTCMS1.DARTMOUTH.EDU (NJE origin LISTSERV@DARTCMS1) by
  8.  DARTCMS1.DARTMOUTH.EDU (LMail V1.2a/1.8a) with BSMTP id 1485; Mon,
  9.  10 Oct 1994 13:11:42 -0400
  10. Date:         Mon, 10 Oct 1994 13:11:04 -0400
  11. From: BITNET list server at DARTCMS1 (1.8a)
  12.               <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
  13. Subject:      File: "MACSCRPT LOG9409"
  14. To: F Terry <pfterry@lks.csi.com>
  15.  
  16. =========================================================================
  17. Date:         Thu, 1 Sep 1994 07:33:18 +0200
  18. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  19. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  20. From:         Jaime Prilusky <lsprilus@INHERIT1.WEIZMANN.AC.IL>
  21. Subject:      FaceSpan XCMD's ?
  22.  
  23. How to teach FaceSpan to use XCMD's ?
  24.  
  25. I have a bunch of useful XCMD's and XFNC's that I would like to use
  26. (without too much work) with FaceSpan.
  27.  
  28. Any suggestion?
  29.  
  30. Thank you in advance,
  31. --
  32.  Dr Jaime Prilusky, Head          ! lsprilus@weizmann.weizmann.ac.il
  33.  Bioinformatics Unit              ! lsprilus@bioinformatics.weizmann.ac.il
  34.  Dep. of Biological Services      !
  35.  Weizmann Institute of Science    ! fax: 972-8-344113
  36.  76100 Rehovot - Israel           ! tel: 972-8-343456
  37. =========================================================================
  38. Date:         Thu, 1 Sep 1994 08:20:47 +0100
  39. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  40. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  41. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  42. Subject:      Re: ScriptServer
  43.  
  44. >Here's a sample script which will compile a text file with ScriptServer:
  45.  
  46.  
  47. >You'll need to spruce it up.  It should be straightforward to write a
  48. >#include script like we did in MPW.
  49.  
  50. Is it any way to use the ScriptServer for a non MPWer ? Scripter? How?
  51.  
  52. thanks,
  53.  
  54. Chaleureusement,
  55.  
  56. Judith
  57. _________________________________________
  58. Judith Kertisz Suchard                  suchard@cnam.cnam.fr
  59. C.N.A.M. Labo Informatique             AppleLink: cnam
  60. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  61. 75018 Paris, France                     Fax: 40 27 27 72
  62. _________________________________________
  63. "La simpliciti, c'est le fruit d'un long effort"
  64. =========================================================================
  65. Date:         Thu, 1 Sep 1994 08:26:12 +0100
  66. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  67. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  68. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  69. Subject:      Re: AppleScript control statements
  70.  
  71. HyperTalk does have a "next repeat" statement.
  72. One can combine appleScript with hypertalk eventually...
  73.  
  74. judith
  75. =========================================================================
  76. Date:         Thu, 1 Sep 1994 08:30:33 +0100
  77. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  78. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  79. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  80. Subject:      Re: Is Fetch scriptable (additional comments)
  81.  
  82. >You could use the Commercial Developer suite to create
  83.  
  84. Excuse me, what is that suite and where it is, for whom is it?
  85.  
  86. Chaleureusement,
  87.  
  88. Judith
  89. _________________________________________
  90. Judith Kertisz Suchard                  suchard@cnam.cnam.fr
  91. C.N.A.M. Labo Informatique             AppleLink: cnam
  92. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  93. 75018 Paris, France                     Fax: 40 27 27 72
  94. _________________________________________
  95. "La simpliciti, c'est le fruit d'un long effort"
  96. =========================================================================
  97. Date:         Thu, 1 Sep 1994 07:29:36 -0500
  98. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  99. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  100. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  101. Subject:      Re: Script examples for BBEdit 3.0?
  102.  
  103. I asked:
  104. >>   I have just begun a project in which I will parse several 1-2 mbyte
  105. >>files (output of a VAX/VMS database search) into tab-delimited text for
  106. >>inclusion in a Filemaker Pro-type database. It seemed to me that
  107. >>Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
  108. >>this.
  109.  
  110. And I got several answers along these lines:
  111. >Perhaps using awk or perl might be more appropriate.
  112.  
  113. Thanks for the suggestions, and I'll look into trying these out (how is
  114. something like Perl different than BBEdit's grep?)
  115.  
  116.    Even while I am looking into this, though, my original question still
  117. stands: does anyone have any sample scripts for BBEdit? I must admit that
  118. at this point, my attachment to BBEdit is sentimental, as I did an earlier
  119. version of this database project using BBEdit 2.5 and QuicKeys -- besides,
  120. they're paid for :-). Scriptable Text Editor would do the job, except for
  121. that pesky 32 K size limit.
  122.  
  123.    Clint
  124.  
  125.  
  126.    Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  127.    Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  128.    Department of Molecular Biology | 609/258-5993
  129.    Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  130. =========================================================================
  131. Date:         Thu, 1 Sep 1994 07:25:49 -0400
  132. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  133. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  134. From:         John Schettino <js12@GTE.COM>
  135. Subject:      Re: AppleScript control statements
  136.  
  137. >Does AppleScript have a command that is the equivalent of the "continue"
  138. >statement in C?  It seems like a major thing to leave out.
  139. >
  140. >repeat with i from 1 to 10
  141. >  blah blah blah
  142. >  if false then
  143. >    skip to the top of the loop   --This is what I want to do!
  144. >  blah blah blah blah
  145. >end repeat
  146. >
  147. >
  148. >Do I have to do it recurvesively?
  149.  
  150. What?
  151.  
  152. No, you have to do it conditionally!
  153.  
  154. Actually, this is yet another use for try/error
  155.  
  156. repeat with i from 1 to 10
  157.  try
  158.   if i is 5 then
  159.     error "continue" number 1000 -- signal a script error
  160.   end if
  161.   log i -- for testing, look in the event log
  162.  on error str number num
  163.   if num is not 1000 then
  164.      -- a real error happend, do something
  165.   end if
  166.  end try
  167. end repeat
  168.  
  169. You'll see that number 5 is skipped in the event log.
  170.  
  171. You can also exit from a repeat loop (like break in C)
  172. repeat with i from 1 to 10
  173.         if i is 5 then
  174.                 exit repeat
  175.         end if
  176. end repeat
  177. i -- this is 5
  178.  
  179.  
  180. - john
  181.  
  182. -----------------------------------------
  183. js12@gte.com             GTE Laboratories
  184. John Schettino                Waltham, MA
  185. =========================================================================
  186. Date:         Thu, 1 Sep 1994 09:51:20 -0500
  187. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  188. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  189. From:         Peter Poorman <poorman@CONVEX.COM>
  190. Subject:      Re: Launching Eudora
  191.  
  192. >I use Eudora constantly to download mail while I'm gone, via the Comm.
  193. >Toolbox. When I get home, however, I like to log on to my PPP account, and
  194. >open the "standard" set of PPP apps. I'm writing a simple script to
  195. >automate these things, but I've run into a problem with Eudora [...]
  196.  
  197. It's not a complete solution, but the following will switch Eudora between
  198. MacTCP, Comm. ToolBox, and OffLine.
  199.  
  200.         -- MacTCP
  201.         tell application "Eudora"
  202.                 set setting 84 to "n"
  203.                 set setting 27 to "n"
  204.         end tell
  205.  
  206.         -- Comm. ToolBox
  207.         tell application "Eudora"
  208.                 set setting 84 to "n"
  209.                 set setting 27 to "y"
  210.         end tell
  211.  
  212.         -- Off Line
  213.         tell application "Eudora"
  214.                 set setting 84 to "y"
  215.         end tell
  216.  
  217. (These numbers were gleaned from the "Eudora Q&A" Hypercard stack.)
  218.  
  219.  
  220. If you set the recheck interval to zero (to avoid checking before you can
  221. set the settings) you could get it to check periodically using an
  222. AppleScript or, better, with the ShareWare "NotifyMail".
  223.  
  224. -- Pete
  225. =========================================================================
  226. Date:         Thu, 1 Sep 1994 08:37:36 -0700
  227. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  228. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  229. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  230. Subject:      Re: Is Fetch scriptable (additional comments)
  231.  
  232. >>You could use the Commercial Developer suite to create
  233. >
  234. >Excuse me, what is that suite and where it is, for whom is it?
  235.  
  236. The Commercial Developer suite ships with Frontier.  Look in the Suites
  237. folder inside your Frontier folder...it is called suites.commercial.  As
  238. usual, you install the suite by double-clicking that file...that adds a
  239. "Commercial Developers" command to your Frontier Suites menu.  Selecting
  240. that command adds a Glue menu.
  241.  
  242. The suite began life as a helper for developers in producing install
  243. ("glue") files for their applications...hence the naming.  Over time, one
  244. significant enhancement was the development and refinement of the 'aete'
  245. resource parser which is part of the suite (when Frontier came out, that
  246. was a non-issue...the glue had to be hand built because AppleScript was
  247. still more than a year away).
  248.  
  249. The current 'aete' parser does a pretty good job of representing the
  250. scripting terminology [as represented by the 'aete'] of an application in
  251. the form of "glue" scripts...optional parameters were added to Frontier 3.0
  252. to help with the process.
  253.  
  254. Some hand-tuning is often still needed, simply because many 'aete'
  255. resources don't fully represent the scripting support offered by an
  256. application (there are some things which can't be represented in the
  257. 'aete', and some cases where developers don't produce the best possible
  258. 'aete' for their app).
  259.  
  260. To explore the suite, you should essentially start at the top of the Glue
  261. menu and work down (pick a name for the app which is a legal Frontier table
  262. name...that makes scripting easier:  for the app "My App", you might use
  263. "myApp").
  264.  
  265.    --John
  266.  
  267. --
  268. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  269. When was the last time you checked out the ceiling tiles in a building you
  270. were in?
  271. =========================================================================
  272. Date:         Thu, 1 Sep 1994 09:35:04 -0700
  273. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  274. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  275. From:         Kevin Purcell <kevinpu@ATM.COM>
  276. Subject:      Re: ScriptServer
  277.  
  278. >Is it any way to use the ScriptServer for a non MPWer ? Scripter? How?
  279.  
  280. Anything that can use ToolServer, I presume.
  281.  
  282. Try BBEdit (even as far back as 2.2), THINK Project Manager, ObjectMaster.
  283.  
  284. BBEdit is probably your best bet, but unless you are already have "MPW
  285. brain damage" :-) you might not find SendAE and ScriptServer that much fun,
  286. especially compared "normal editing". The advantages would come in group
  287. projects with version control, and make files, and build scripts!
  288.  
  289. This is not to say that it isn't useful for those of us who already have
  290. "MPW brain damage" and who work in larger groups!
  291.  
  292. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  293. Attachmate Corp                   xenolith@halcyon.com
  294. =========================================================================
  295. Date:         Thu, 1 Sep 1994 11:19:38 -0500
  296. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  297. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  298. From:         Sean Elfstrom <selfstro@CS.TRINITY.EDU>
  299. Subject:      Re: Script examples for BBEdit 3.0?
  300. In-Reply-To:  <no.id> from "Clinton MacDonald" at Sep 1, 94 07:29:36 am
  301.  
  302. >
  303. > I asked:
  304. > >>   I have just begun a project in which I will parse several 1-2 mbyte
  305. > >>files (output of a VAX/VMS database search) into tab-delimited text for
  306. > >>inclusion in a Filemaker Pro-type database. It seemed to me that
  307. > >>Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
  308. > >>this.
  309. >
  310. > And I got several answers along these lines:
  311. > >Perhaps using awk or perl might be more appropriate.
  312. >
  313. > Thanks for the suggestions, and I'll look into trying these out (how is
  314. > something like Perl different than BBEdit's grep?)
  315. >
  316. >    Even while I am looking into this, though, my original question still
  317. > stands: does anyone have any sample scripts for BBEdit? I must admit that
  318. > at this point, my attachment to BBEdit is sentimental, as I did an earlier
  319. > version of this database project using BBEdit 2.5 and QuicKeys -- besides,
  320. > they're paid for :-). Scriptable Text Editor would do the job, except for
  321. > that pesky 32 K size limit.
  322. >
  323. >    Clint
  324. >
  325.  
  326. I have a script or two that I wrote for BBEdit to move mail headers from
  327. the end of AOL mail files to the beginning, so that I could read them
  328. in Eudora. I'll send you a copy, if you'd like, but it might be a day or
  329. two until I can get around to it. We just started school again, so
  330. things are kind of hectic around here. If you don't receive them
  331. by Monday, just drop me a reminder.
  332.  
  333. BTW, BBEdit Scripting is kind of tricky, and unless you have a fast
  334. machine, it is going to take a while to work with files that large.
  335. The files I was working with were only 25K or so, and on my SE/30, it
  336. was pretty slow.
  337.  
  338. --
  339. ---------------------------------------------------------------------
  340. Sean Elfstrom                  | Trinity University
  341. 10819 Auldine                  | selfstro@cs.trinity.edu
  342. San Antonio, TX 78230          | http://www.cs.trinity.edu/~selfstro/
  343. (210) 341-4624                 | PGP Key available via finger
  344. =========================================================================
  345. Date:         Thu, 1 Sep 1994 13:09:00 -0400
  346. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  347. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  348. From:         "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
  349. Subject:      Re: Launching Eudora
  350.  
  351. >If you set the recheck interval to zero (to avoid checking before you can
  352. >set the settings) you could get it to check periodically using an
  353. >AppleScript or, better, with the ShareWare "NotifyMail".
  354.  
  355. ... or with the freeware "MacBiff" (which works great for me!)
  356.  
  357. ------------------------------------------------------------------------
  358. Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
  359. =========================================================================
  360. Date:         Thu, 1 Sep 1994 17:40:20 -0400
  361. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  362. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  363. From:         zip <zip@KNOWARE.NL>
  364. Subject:      Re: Launching Eudora
  365.  
  366. Hi! I'm completely new to Eudora, internet @ stuff.. Could you be a litlle
  367. more specific about unattended downloading of e-mail, I'M using an ARA 2.0
  368. connection and Eudora, but Eudora seems to be unable to launch ARA, log in,
  369. get my mail (if any), and log out again for a repeating interval of say an
  370. hour. Is Eudora scriptable? Could you send me an example of how to
  371. accomplish this?
  372. Where can I get more detailed info about Eudora or other scriptable e-mail
  373. programs?
  374. I guess these are stupid questions, but sorry, this is all new for me.
  375. Please help. Thanks, Zip.
  376. =========================================================================
  377. =========================================================================
  378. Date:         Tue, 6 Sep 1994 10:20:04 -0400
  379. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  380. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  381. From:         Mike Kost <kost@NETAXS.COM>
  382. Subject:      FileMaker Pro & copying Text field.
  383.  
  384. Greetings
  385.  
  386. I just subscribed to this group last week and havent seen
  387. much traffic on it. So if this problem has been hashed out,
  388. please tell me about when it was and I'll try to find it
  389. in the archives... Thanks
  390.  
  391. And now for something completely different  %*)
  392.  
  393. - AppleScript 1.1 and FileMaker Pro 2.1v1
  394.  
  395. I dont have my script in front of me so
  396. the script is not 100% accutate. Sorry.
  397.  
  398. Here's the situation:
  399.  
  400. - Two database files: DB1 and DB2
  401. - I want to simply copy the current
  402.   active record in text field "fieldName" in DB1
  403.   to text  field "fieldName" in DB2
  404.  
  405. - script:
  406.   tell application filemakerPro
  407.     copy cell "fieldName" of database DB1 to TEMP
  408.     copy TEMP to cell "fieldNName" of database DB2
  409.   end tell
  410.  
  411. - results:
  412.   this works fine for almost all situations EXCEPT
  413.   when the text field it is copying is a text field with
  414.   a carriage return/Line feed(CR). The Field that I
  415.   am copying into will only get the text up to the CR.
  416.   ????
  417.  
  418.  
  419. Any Suggestions
  420.  
  421. Mike
  422.  
  423.  
  424. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  425.  Michael R. Kost
  426.  kost@netaxs.com
  427. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  428.  
  429. Help, I'm a rock!!!
  430.                  Frank Zappa
  431. =========================================================================
  432. Date:         Mon, 5 Sep 1994 17:32:18 -1000
  433. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  434. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  435. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  436. Subject:      ANNOUNCEMENT:  AliasExpander script for Eudora
  437.  
  438. Greetings all,
  439.  
  440. I have just finished an AliasExpander script for use with AppleScript 1.1
  441. and Eudora 1.5 beta.
  442.  
  443. AliasExpander expands Eudora aliases and nested aliases in the "To:"
  444. field of the message you are composing.
  445.  
  446. It is especially handy if used with a utility such as OtherMenu,
  447.  
  448. To recieve AliasExpander, send me a message with a subject line or body
  449. that contains "Send me AliasExpander" (case insensitive).  A reply will
  450. be automatically generated by Eudora.
  451.  
  452. Happy scripting,
  453. Peter Hinely
  454. =========================================================================
  455. Date:         Tue, 6 Sep 1994 12:24:15 +1000
  456. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  457. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  458. From:         David Parry <dparry@OZEMAIL.COM.AU>
  459. Subject:      Re: Launching Eudora
  460.  
  461. zip <zip@KNOWARE.NL> wrote:
  462. > ...but Eudora seems to be unable to launch ARA, log in,
  463. As far as I knew Eudora only works with TCP, (but I'm probably wrong...)
  464.  
  465. > Is Eudora scriptable? Could you send me an example of how to
  466. >accomplish this?
  467. Have you actually got Applescript installed, and the latest version of Eudora?
  468.  
  469. >Where can I get more detailed info about Eudora or other scriptable e-mail
  470. >programs?
  471. Probably eudora-info@qualcomm.com would be a good place to start? and the
  472. FTP site for qualcomm
  473.  
  474. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  475. > dparry@ozemail.com.au                           Voice:  + 61 7 356 7645 <
  476. > The System                                      Fax:    + 61 7 356 7790 <
  477. > 46 Lansdowne Street                             DJP Mobile: 015 150 939 <
  478. > Wilston QLD 4051                                MJE Mobile: 018 732 521 <
  479. > Australia                                                               <
  480. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  481. > You could get run over by a bus tomorrow... go on... have a fag!        <
  482. >                                                                         <
  483. >       \@\                                                               <
  484. >        /@@/                                                             <
  485. >       \@@@\                                                             <
  486. >        \@@@/                                                            <
  487. >         \@\                                                             <
  488. >          |#|00000000000)))                                              <
  489. >                                                                         <
  490. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  491. =========================================================================
  492. Date:         Tue, 6 Sep 1994 09:59:31 -0500
  493. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  494. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  495. From:         Fred Terry <pfterry@LKS.CSI.COM>
  496. Subject:      Re: mail missing...
  497. In-Reply-To:  Your message of "Tue, 06 Sep 94 09:54:12 BST"
  498.  
  499. > Since Sat, 3rd sept I do not get the mail from the mailing group!
  500. > what is happening?
  501. > X
  502.  
  503. I checked with David Avery (the listserv god at Dartmouth). He tells me that
  504. the MacScripting list was set to hold due to a disk-related error. He says
  505. that it's set to free now, so we should begin seeing messages.
  506.  
  507. pf
  508.  
  509.  
  510. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  511. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  512. =========================================================================
  513. Date:         Tue, 6 Sep 1994 11:29:00 EDT
  514. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  515. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  516. From:         Jay Thomas <jthomas@PLUTO.NJCC.COM>
  517. Subject:      Re: ANNOUNCEMENT:  AliasExpander script for Eudora
  518.  
  519. whats you address? The headers only have the macscript address..
  520. =========================================================================
  521. Date:         Tue, 6 Sep 1994 08:35:33 -0800
  522. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  523. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  524. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  525. Subject:      Re: Launching Eudora
  526.  
  527. David Parry said:
  528. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  529. > ^
  530. > > dparry@ozemail.com.au                           Voice:  + 61 7 356
  531. > > 7645 < The System                                      F
  532. > > ax:    + 61 7 356 7790 < 46 Lansdowne Street
  533. > >  DJP Mobile: 015 150 939 < Wilston QLD 4051
  534. > >    MJE Mobile: 018 732 521 < Australia
  535. > >                              <
  536. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  537. > ^
  538. > > You could get run over by a bus tomorrow... go on... have a
  539. > > fag!        <
  540.     ^^^
  541.  
  542. Uhh, dontcha love regional dialects?
  543.  
  544. (Hint: the word 'fag' has very different meanings in the US and in Australia)
  545.  
  546. -roy
  547. =========================================================================
  548. Date:         Tue, 6 Sep 1994 11:12:14 -0500
  549. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  550. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  551. From:         Fred Terry <pfterry@LKS.CSI.COM>
  552. Subject:      READ CAREFULLY: Newsgroup Poll
  553.  
  554. Everyone,
  555.  
  556. The polls officially closed last Wednesday at midnight, so I thought you might
  557. be interested in the swing of opinion. With just over 132 replying (on a list
  558. of
  559. 806), here are the results.
  560.  
  561.     Should I begin the process of creating a newsgroup?
  562.  
  563.     74 said yes
  564.     43 said no
  565.     4 said they didn't care
  566.  
  567.  
  568.     Should the mailing list be maintained and gatewayed?
  569.  
  570.     87 said yes
  571.     29 said no
  572.      7 said they didn't care
  573.      8 made comments that they do not want the list gatewayed, but do
  574.         want it to continue
  575.  
  576.  
  577. I can look at these votes a couple of different ways:
  578.   74 of 132 people are in favor of creating a newsgroup
  579.   74 of 806 people are in favor of creating a newsgroup
  580. And I can't ignore the fact that 87 of those 132 people want to keep the
  581. mailing list no matter what happens.
  582.  
  583. I checked the Guidelines for creating a newsgroup, and we must have 100 more
  584. yes votes than no votes to create a newsgroup. Or 2/3rds of the votes must be
  585. in favor of creating a newsgroup. Here's the appropriate section:
  586.  
  587.     3) AFTER the waiting period, and if there were no serious objections that
  588.     might invalidate the vote, and if 100 more valid YES/create votes are
  589.     received than NO/don't create AND at least 2/3 of the total number of
  590.     valid votes received are in favor of creation, a newgroup control
  591.     message may be sent out.  If the 100 vote margin or 2/3 percentage is
  592.     not met, the group should not be created.
  593.  
  594. You can see that our little internal poll misses the mark on both counts.
  595. Let's consider a couple of additional facts. I checked the stats for the
  596. mailing list this morning, and we are averaging 16 messages/day. I also
  597. checked the number of questions posted to comp.sys.mac.programming for the
  598. month of July. In a quick and unofficial count, I found 14 messages devoted
  599. specifically to AppleScript or appleevents. There was a thread this
  600. last week in comp.sys.mac.system (What the hell is AppleScript good for?) and
  601. it had 18 some messages in the thread, but that's an unusual case.
  602.  
  603.  
  604. My conclusions: I think the small number of those that voted makes it null and
  605. void. I'm not sure that we could get a newsgroup through the Request For
  606. Discussion and Call For Votes process with so few votes. I also wonder about
  607. the validity of creating a newsgroup when most of the people that wanted one
  608. also wanted me to maintain the mailing list. We can have it both ways, but we
  609. will all have to make sacrifices of one kind or another: the newsgroup won't
  610. look like the list, and the list won't be the same if there is a gateway.
  611.  
  612. Having said that, I will recant a bit. At least one of the people who voted
  613. pointed out that I didn't attach my signature. This could have made it hard
  614. for people to reply.
  615.  
  616. So if you haven't voted and want to, send me a message before the end of the
  617. week (I'm appending the form). If I don't get many additional votes, I think
  618. we should table the creation of a newsgroup for a couple of months. I don't
  619. want to start something that is going to fail during the RFD and CFV process.
  620.  
  621. pf
  622.  
  623. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  624. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  625.  
  626.  
  627.  
  628. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~cut here~~~~~~~~~~~~~~~~~~~~~~~~~~
  629.  
  630. Should I begin the process of creating a MacScripting newsgroup?
  631.  
  632. ____ Yes
  633.  
  634. ____ No
  635.  
  636.  
  637. Should the mailing list be maintained and messages gatewayed to the newsgroup
  638. and vice versa.
  639.  
  640. ____ Yes
  641.  
  642. ____ No
  643. =========================================================================
  644. Date:         Tue, 6 Sep 1994 11:33:17 -0700
  645. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  646. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  647. From:         Rob Dewhirst <robd@FARALLON.COM>
  648. Subject:      PowerTalker 1.0 sent to gaea
  649.  
  650. I've uploaded Sean McMains PowerTalker scriptable app to gaea.  PowerTalker
  651. will read your incoming PowerTalk mail to you.
  652.  
  653. Now through the combination of PowerTalk, AppleScript, the Speech Manager,
  654. and PowerTalker, you can get up in the morning and say "Computer, read my
  655. incoming messages."  :)
  656.  
  657. It's freeware, and it works quite well.
  658.  
  659. (Now if someone would write a decent PowerTalk mailer...)
  660. =========================================================================
  661. Date:         Tue, 6 Sep 1994 13:43:40 -0300
  662. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  663. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  664. From:         Bill Hutten <bhutten@FOX.NSTN.NS.CA>
  665. Subject:      Eudora 2.1 and "sender"
  666.  
  667. Has anyone been using the new Eudora 2.1? I'm trying to retrieve the
  668. "sender" email address of messages in the inbox:
  669.  
  670.         set msgFrom to sender of message i of mailbox "In" of mail folder ""
  671.  
  672.  
  673. doesnt work, as you get the "sender" as it appears in the "who" column,
  674. which is not usually the email address. Does anyone know how to get the
  675. actual email address of the sender?
  676.  
  677.  
  678. thanx
  679.  
  680. - bill
  681.  
  682.  
  683. | Bill Hutten - bhutten@fox.nstn.ns.ca
  684. | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6   (902) 453 2482
  685. |     "Hard to love, when you're bracing for impact." - Martin Amis
  686. =========================================================================
  687. Date:         Tue, 6 Sep 1994 12:57:16 -0500
  688. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  689. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  690. From:         "Harold D. Levin" <Harold_Levin@NCSU.EDU>
  691. Subject:      Re: READ CAREFULLY: Newsgroup Poll
  692.  
  693. Should I begin the process of creating a MacScripting newsgroup?
  694.  
  695. __X_ Yes
  696.  
  697. ____ No
  698.  
  699.  
  700. Should the mailing list be maintained and messages gatewayed to the newsgroup
  701. and vice versa.
  702.  
  703. ____ Yes
  704.  
  705. __X_ No
  706.  
  707.  
  708.  
  709.  =============================================================================
  710. Harold D. Levin
  711. Department of Philosophy and Religion                  office (919) 515-6333
  712. Box 8103                                                  fax (919) 515-7856
  713. North Carolina State University at Raleigh
  714. Raleigh NC 27695-8103
  715.  =============================================================================
  716. =========================================================================
  717. Date:         Tue, 6 Sep 1994 12:10:00 -0500
  718. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  719. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  720. From:         Fred Terry <pfterry@LKS.CSI.COM>
  721. Subject:      Re: PowerTalker 1.0 sent to gaea
  722. In-Reply-To:  Your message of "Tue, 06 Sep 94 11:33:17 PDT"
  723.  
  724. >I've uploaded Sean McMains PowerTalker scriptable app to gaea.  PowerTalker
  725. >will read your incoming PowerTalk mail to you.
  726. >
  727. >Now through the combination of PowerTalk, AppleScript, the Speech Manager,
  728. >and PowerTalker, you can get up in the morning and say "Computer, read my
  729. >incoming messages."  :)
  730.  
  731. Thanks, Rob. Everyone, you'll find it in
  732.  
  733. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/PowerTalker10.sit.hqx
  734.  
  735. Enjoy.
  736.  
  737. pf
  738. =========================================================================
  739. Date:         Tue, 6 Sep 1994 10:26:10 -0800
  740. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  741. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  742. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  743. Subject:      Re: READ CAREFULLY: Newsgroup Poll
  744.  
  745. Should I begin the process of creating a MacScripting newsgroup?
  746.  
  747. _____ Yes
  748.  
  749. __X__ No
  750.  
  751.  
  752. Should the mailing list be maintained and messages gatewayed to
  753. the newsgroup and vice versa.
  754.  
  755. __X_ Yes
  756.  
  757. ____ No
  758. =========================================================================
  759. Date:         Tue, 6 Sep 1994 10:38:17 -0800
  760. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  761. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  762. From:         "W. J. Proffer" <proffer@SCUBED.SCUBED.COM>
  763. Subject:      scriptable graphics conversion
  764.  
  765. Your help would be greatly appreciated:
  766.  
  767. I have set up scripts to run an Apple Quicktake camera from a Macintosh
  768. http server.  It works fine, except that I haven't found a (scriptable) way
  769. to convert the Quicktake PICT format (which uses Quicktime and Quicktake
  770. extensions) to a form (e.g., normal PICT or better, GIF) viewable within a
  771. HTML browser.
  772.  
  773. Does anybody know of a scriptable graphics program which would do a PICT to
  774. GIF conversion?  Apple's PhotoFlash won't get me there unless I can find an
  775. appropriate PhotoShop PlugIn, and the fine program "GraphicConverter"
  776. (which is scriptable!) won't convert formats.....
  777.  
  778. thanks,
  779.  
  780. bill
  781.  
  782. <pre>
  783. William J. Proffer
  784. Senior Staff Scientist
  785. Test Technology Group
  786. S-Cubed, A Division of Maxwell Labs
  787. 3398 Carmel Mountain Road
  788. San Diego, CA  92038-1095
  789. (619) 453-0060
  790. (619) 755-0474 (fax)
  791. proffer@scubed.com
  792. World Wide Web URL:  http://www.scubed.com:8001/
  793. </pre>
  794. =========================================================================
  795. Date:         Tue, 6 Sep 1994 14:17:20 -0400
  796. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  797. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  798. From:         Mike Kost <kost@NETAXS.COM>
  799. Subject:      FileMaker Pro Text Field & AppleScript
  800.  
  801. Hi
  802.  
  803. I sent this out earlier, must have put the incorrect
  804. mail address. If you got two of these messages - sorry -
  805.  
  806. mike
  807.  
  808. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  809.  
  810.  
  811. Greetings
  812.  
  813. I just subscribed to this group last week and havent seen
  814. much traffic on it. So if this problem has been hashed out,
  815. please tell me about when it was and I'll try to find it
  816. in the archives... Thanks
  817.  
  818. And now for something completely different  %*)
  819.  
  820. - AppleScript 1.1 and FileMaker Pro 2.1v1
  821.  
  822. I dont have my script in front of me so
  823. the script is not 100% accutate. Sorry.
  824.  
  825. Here's the situation:
  826.  
  827. - Two database files: DB1 and DB2
  828. - I want to simply copy the current
  829.   active record in field "fieldName" in DB1
  830.   to the same field "fieldName" in DB2
  831.  
  832. - script:
  833.   tell application filemakerPro
  834.     copy cell "fieldName" of database DB1 to TEMP
  835.     copy TEMP to cell "fieldNName" of database DB2
  836.   end tell
  837.  
  838. - results:
  839.   this works fine for almost all situations EXCEPT
  840.   when the field it is copying is a text field with
  841.   a carriage return/Line feed(CR). The Field that I
  842.   am copying into will only get the text up to the CR.
  843.   ????
  844.  
  845.  
  846. Any Suggestions
  847.  
  848. Mike
  849.  
  850.  
  851. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  852.  Michael R. Kost
  853.  kost@netaxs.com
  854. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  855.  
  856. Help, I'm a rock!!!
  857.                  Frank Zappa
  858. =========================================================================
  859. Date:         Tue, 6 Sep 1994 14:41:34 -0500
  860. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  861. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  862. From:         "Sean Elfstrom (457235635)" <selfstro@CS.TRINITY.EDU>
  863. Subject:      Re: READ CAREFULLY: Newsgroup Poll
  864. In-Reply-To:  <no.id> from "Roy S. Rapoport" at Sep 6, 94 10:26:10 am
  865.  
  866. Should I begin the process of creating a MacScripting newsgroup?
  867.  
  868. _X___ Yes
  869.  
  870. ____ No
  871.  
  872.  
  873. Should the mailing list be maintained and messages gatewayed to the newsgroup
  874. and vice versa.
  875.  
  876. __X__ Yes
  877.  
  878. ____ No
  879.  
  880. --
  881. ---------------------------------------------------------------------
  882. Sean Elfstrom                  | Trinity University
  883. 10819 Auldine                  | selfstro@cs.trinity.edu
  884. San Antonio, TX 78230          | http://www.cs.trinity.edu/~selfstro/
  885. (210) 341-4624                 | PGP Key available via finger
  886. =========================================================================
  887. Date:         Tue, 6 Sep 1994 13:16:28 -0800
  888. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  889. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  890. From:         Peter Speck <speck@DAT.RUC.DK>
  891. Subject:      Re: scriptable graphics conversion
  892.  
  893. >Your help would be greatly appreciated:
  894. >
  895. >I have set up scripts to run an Apple Quicktake camera from a Macintosh
  896. >http server.  It works fine, except that I haven't found a (scriptable) way
  897. >to convert the Quicktake PICT format (which uses Quicktime and Quicktake
  898. >extensions) to a form (e.g., normal PICT or better, GIF) viewable within a
  899. >HTML browser.
  900. >
  901. >Does anybody know of a scriptable graphics program which would do a PICT to
  902. >GIF conversion?  Apple's PhotoFlash won't get me there unless I can find an
  903. >appropriate PhotoShop PlugIn, and the fine program "GraphicConverter"
  904. >(which is scriptable!) won't convert formats.....
  905.  
  906. DeBabelizer. 1.5.5 is some sort of script able.
  907. You can send a "DoScript" command to it. It uses its own very weird script
  908. language, but is recordable, and can convert the recorded scripts to
  909. AppleScript.
  910.  
  911. One hint: sometimes it ignores the filename when saving, so I am always
  912. saving files as "Untitled" and the renames afterwards.
  913.  
  914. I have been using it for doing some www stuff to the Lollapalooza.
  915.  
  916. ---
  917. Peter Speck
  918.                              (And it was eleven o'clock
  919.                               which was time for a little something)
  920. =========================================================================
  921. Date:         Tue, 6 Sep 1994 13:36:48 PDT
  922. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  923. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  924. From:         "Mark B. Ballard" <ballard@MDHOST.CSE.TEK.COM>
  925. Subject:      Re: READ CAREFULLY: Newsgroup Poll
  926. In-Reply-To:  Your message of Tue,
  927.               06 Sep 94 11:12:14 -0500. <9409061615.AA30742@inet1.tek.com>
  928.  
  929. Should I begin the process of creating a MacScripting newsgroup?
  930.  
  931. _X___ Yes
  932.  
  933. ____ No
  934.  
  935.  
  936. Should the mailing list be maintained and messages gatewayed to the newsgroup
  937. and vice versa.
  938.  
  939. ____ Yes
  940.  
  941. _X___ No
  942.  
  943. --
  944. =========================================================================
  945. Date:         Tue, 6 Sep 1994 13:44:58 -0800
  946. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  947. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  948. From:         Erik Smith <ersmith@UCSD.EDU>
  949. Subject:      Sending commands to Remote Finder problems
  950.  
  951. I'm tring to find a good way to launch scripts remotely.  I've been
  952. experimenting with scripts that talk to remote macs using program linking.
  953.  
  954.  
  955. The main problem is that AppleScript commands get their target from the
  956. tell statement like in this command to a remote mac:
  957.  
  958. tell application "Finder" of machine "pm6100 #1" of zone "Computer Lab"
  959.         open file "simpletext" of startup disk
  960. end tell
  961.  
  962. When I open this script in the Script Editor, it immediately tries to log
  963. in to the remote mac and read the target's dictionary (I think).   I dont
  964. know how to write commands that know their target but don't go looking for
  965. the application.  If I'm writing a script that is going to log into 30 macs
  966. in a row, I dont want to get 30 login prompts.  Does anyone know of a
  967. scriptable program that just launch applications remotely?
  968.  
  969. I've also tried using script daemon and driving it with the TCPIP osax, but
  970. I can't seem to drive the telnet session with the osax (something I doing
  971. wrong probably) and driving it with Sitcomm/TGE TCP Tool also seems
  972. problematic (Sitcomm wont quit with the TGE TCP tool, I have to crash it)
  973.  
  974. Apparently, the PPC toolbox tries to remember a link that has been opened
  975. and does not require you to fill in a second login screen when you access
  976. the link. How do I "log out" of this link?
  977.  
  978. Another problem is that if I hit Cancel on the login screen, the Script
  979. stops working: it does not prompt me for the login screen again and it
  980. starts complaining about the commands within the tell statement.  The
  981. script refuses to work even when I re-write and compile the script in a new
  982. file.
  983.  
  984. One thing that is interesting is that I've always heard that Apple
  985. intentionally disabled remote application launching, but with the new
  986. scriptable finder, which is always open, you can ask it to launch
  987. applications using the open command.
  988.  
  989.  
  990. -Erik
  991. =========================================================================
  992. Date:         Tue, 6 Sep 1994 17:13:16 -0400
  993. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  994. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  995. From:         Kiran Wagle <groo@NETCOM.COM>
  996. Subject:      Re: control statements
  997.  
  998. On 8/31/94, Lawrence D'Oliveiro wrote:
  999.  
  1000. > that also lacks gotos and a "continue" statement, and I can write
  1001. > clean, uncontorted code without feeling the need for either.
  1002.  
  1003. Oh, but how I miss call-with-current-continuation...
  1004.  
  1005. (Yeah, yeah, I *do* know how it's really spelled. <grin>)
  1006.  
  1007. ~ Kiran <groo@netcom.com>
  1008. =========================================================================
  1009. Date:         Tue, 6 Sep 1994 14:48:55 -0700
  1010. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1011. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1012. From:         James Lane <lanej@U.WASHINGTON.EDU>
  1013. Subject:      learning apple script
  1014. In-Reply-To:  <9409062026.AA01905@mx3.u.washington.edu>
  1015.  
  1016. Could someone recommend a book about applescript, or else share what
  1017. resources you used to learn applescript.
  1018.  
  1019. TIA!
  1020.  
  1021. A newbie scripter...
  1022. james lane
  1023. university of washington
  1024. office of technology transfer
  1025. lanej@u.washington.edu
  1026. =========================================================================
  1027. Date:         Tue, 6 Sep 1994 15:47:48 -0800
  1028. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1029. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1030. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  1031. Subject:      Re: learning apple script
  1032.  
  1033. James Lane wrote:
  1034.  
  1035. > Could someone recommend a book about applescript, or else share what
  1036. > resources you used to learn applescript.
  1037.  
  1038. I used, initially, the Tao of AppleScript (which, in technical terms, sucked
  1039. the big toad in terms of usefulness).  Eventually I got a copy of the
  1040. AppleScript Language Reference, but until then, I learned it the hard way --
  1041. I was working on a project for work to develop a group (3) of scripts to
  1042. automate our backup procedures, and I used the 'Open Dictionary' and trial
  1043. and error *VERY* often :)
  1044.  
  1045. -roy
  1046.  
  1047. Roy S. Rapoport                           rsr@berksys.com
  1048. 510-540-5535 ext. 280                   Fax: 510-540-5630
  1049. I speak for the Pope, the President of the United States,
  1050. and  all sentient  beings everywhere, other than those at
  1051. Berkeley Systems Incorporated.
  1052. =========================================================================
  1053. Date:         Tue, 6 Sep 1994 20:38:42 -0500
  1054. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1055. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1056. From:         Jonathan Bauer <jhbauer@PANIX.COM>
  1057. Subject:      Re: MacPGP scripts
  1058.  
  1059. >Hi all,
  1060. >        I've just finished my addition to the MacPGP <-> Eudora universe,
  1061. >and would like to find some hardy souls to try and break it!
  1062. >        I have a MacPGP.lib (24K) and an Encrypt the out basket script
  1063.  
  1064. [snip]
  1065. >        Drop me a line for more info & I'll send you the package.
  1066. >
  1067.  
  1068. That would be great!  I've got Eudora 2.1fc2 so, if you don't mind (and if
  1069. it's necessary) I'll try my hand at modifying your scripts for same and
  1070. pass the results along, if I can make it work.
  1071.  
  1072. TIA,
  1073.  
  1074. /jonathan
  1075.  
  1076. ----------------------------------
  1077. Jonathan Bauer <jhbauer@panix.com>
  1078. 440 W. 41st St. #202
  1079. N.Y. N.Y.  10036
  1080. +1 212-239-5158
  1081. =========================================================================
  1082. Date:         Tue, 6 Sep 1994 20:59:31 -0700
  1083. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1084. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1085. From:         Derrick Schneider <derrick@NETCOM.COM>
  1086. Subject:      Re: learning apple script
  1087. In-Reply-To:  <199409062357.QAA27383@mail2.netcom.com>
  1088.  
  1089. On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
  1090.  
  1091. > I used, initially, the Tao of AppleScript (which, in technical terms, sucked
  1092. > the big toad in terms of usefulness).
  1093.  
  1094. Not to take this personally or anything, but do keep in mind that Tao was
  1095. _specifically_ designed to teach AppleScript to people who don't know
  1096. anything about programming (literally, we used our publications person's
  1097. mother as the acid test). I have always been the first to recommend
  1098. either Danny's book or (now) the AS Reference for people who are more
  1099. experienced.
  1100.  
  1101. We weren't trying to be extremely technical and cover every single
  1102. possible aspect of AS; we were trying to get people started with it,
  1103. especially those who had never programmed before.
  1104.  
  1105. Okay, so maybe I took it a _little_ personally :)
  1106.  
  1107. Derrick Schneider
  1108. Author, The Tao of AppleScript
  1109. =========================================================================
  1110. Date:         Tue, 6 Sep 1994 22:03:41 -0800
  1111. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1112. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1113. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  1114. Subject:      Re: learning apple script
  1115.  
  1116. Derrick Schneider wrote:
  1117.  
  1118. > On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
  1119. >
  1120. > > I used, initially, the Tao of AppleScript (which, in technical
  1121. > > terms, sucked the big toad in terms of usefulness).
  1122. >
  1123. > Not to take this personally or anything, but do keep in mind that Tao
  1124. > was _specifically_ designed to teach AppleScript to people who don't know
  1125. > anything about programming (literally, we used our publications
  1126. > person's mother as the acid test). I have always been the first
  1127. > to recommend either Danny's book or (now) the AS Reference for people
  1128. > who are more experienced.
  1129. >
  1130. > We weren't trying to be extremely technical and cover every
  1131. > single possible aspect of AS; we were trying to get people started with
  1132. > it, especially those who had never programmed before.
  1133.  
  1134. Uhh, let me rephrase ... :)
  1135.  
  1136. the TofA, for me, sucked.  It taught me how to do 2+2 in AS and introduced
  1137. the basic concepts of AS, but AS A REFERENCE MANUAL IT SUCKED.
  1138.  
  1139. Now, obviously it's supposed to suck, as Derrick says above -- it's not
  1140. supposed to be a reference manual.  As something to introduce people who get
  1141. a stroke when thinking of opening a control panel to AppleScript, it's
  1142. superb.  Good job.  It's just that I've mucked with my mac long enough, and
  1143. am confident (well, arrogant) enough to think I know what I'm doing, so the
  1144. TofA sucked for my purposes.
  1145.  
  1146. By all means, get it if you're new to AppleScript, programming, and standard
  1147. text editing.  It's a great book.
  1148.  
  1149. Any better, Derrick? :)
  1150.  
  1151. (seriously, it's a good introduction, I guess)
  1152.  
  1153. -roy
  1154. =========================================================================
  1155. Date:         Wed, 7 Sep 1994 01:01:10 -0500
  1156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1158. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  1159. Subject:      Re: ANNOUNCEMENT:  AliasExpander script for Eudora
  1160.  
  1161. At 10:32 PM 05.9.94, Pete Hinely wrote:
  1162. >To recieve AliasExpander, send me a message with a subject line or body
  1163. >that contains "Send me AliasExpander" (case insensitive).  A reply will
  1164. >be automatically generated by Eudora.
  1165. >
  1166.  
  1167. I noticed in your README that you have other scripts as well...and I
  1168. received a reply to (but not the original of) your post(?) about PGP
  1169. scripts for Eudora. Is there any way I can get any of your other scripts?
  1170. I'm just getting into scripting, and Eudora scripts have been the most
  1171. helpful I've seen for getting a feel for the power and the syntax of the
  1172. language...
  1173.  
  1174. Cheers,
  1175. spud.
  1176.  
  1177.  
  1178. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1179. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  1180. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  1181. spud@access.digex.net ----------- WWW page:  http://www.digex.net/~spud
  1182.  
  1183.  
  1184. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  1185. =========================================================================
  1186. Date:         Tue, 6 Sep 1994 22:52:54 -0700
  1187. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1188. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1189. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1190. Subject:      Re: learning apple script
  1191.  
  1192. With respect to "Tao", it is important to be sure you are picking up the
  1193. Second Edition, not the first, if you decide Tao is right for you.  (I
  1194. don't think I'll hurt Derrick's feelings with that remark, but if so he is
  1195. invited to say so.)
  1196.  
  1197. And with respect to "Handbook" ("handbook" is a synonym for "Danny"), it
  1198. might pay to await the upcoming second edition (which would suggest using
  1199. 2nd Tao for now).
  1200.  
  1201.    --John
  1202.  
  1203. --
  1204. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1205. =========================================================================
  1206. Date:         Tue, 6 Sep 1994 23:11:32 -0800
  1207. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1208. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1209. From:         Preston Holmes <pholmes@UCSD.EDU>
  1210. Subject:      Re: scriptable graphics conversion
  1211.  
  1212. >and the fine program "GraphicConverter"
  1213. >(which is scriptable!) won't convert formats.....
  1214.  
  1215. Hmmm I 've used GraphicConverter 1.7.6-2.0 to do just this (you have to
  1216. reduce 24bit picts to 8bit before it will let you save as GIF) without
  1217. applescipt though.  But I wasn't able find a library, is it scriptable and
  1218. if so where is some documentation.  I use QuickKeys now to batch convert
  1219. 24bit PICTs -> 8bit GIFs.
  1220.  
  1221. PS though it is not part of my commute I can't wait to see realtime pics of
  1222. "The Merge".
  1223.  
  1224. -Preston
  1225.  
  1226.  
  1227. --
  1228. Preston Holmes                  (h)619-453-9209
  1229. Dept. of Neuroscience, UCSD
  1230. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  1231. =========================================================================
  1232. Date:         Tue, 6 Sep 1994 23:41:35 MST
  1233. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1234. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1235. From:         103t_english@WEST.CSCWC.PIMA.EDU
  1236. Subject:      Re: MACSCRPT Digest - 1 Sep 1994 to 6 Sep 1994
  1237.  
  1238. RE: Newsgroup creation...
  1239.  
  1240. SInce I get the digest form, I didn't notice the informal discussion.
  1241.  
  1242. You might want to consider THAT possiblity to.
  1243.  
  1244. Count me as a "Yes" for newsgroup creation, and a "Yes" (for those with no
  1245. newsgroup access) for maintaining the list...
  1246.  
  1247. It is good enough for c.s.m.p.codewarrior, afterall...
  1248.  
  1249.  
  1250.  
  1251. Lawson D. English 103T_ENGLISH@west.cscwc.pima.edu
  1252.  
  1253. -INSERT INFORMATIVE AND WITTY MESSAGE HERE-
  1254.  
  1255. West Campus Internet Class of 1994
  1256. =========================================================================
  1257. Date:         Wed, 7 Sep 1994 00:30:25 -0700
  1258. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1259. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1260. From:         Jon Pugh <jonpugh@NETCOM.COM>
  1261. Subject:      Inheritance in Scripts
  1262.  
  1263. Since we were just talking about script object inheritance, I thought I
  1264. would mention that there is an interesting article in Develop 19 by Paul
  1265. Smith of Full Moon Software describing how to do dynamic script inheritance
  1266. in a program like FaceSpam and/or Hypercard.  It has some interesting stuff
  1267. in it regarding attachability and inheritence.
  1268.  
  1269. The only problem I found was that it was all from a C implementation point
  1270. of view, so I tried doing some script code to do some of the same stuff and
  1271. found out why.  It doesn't work from scripts.  Bummer.
  1272.  
  1273. The crux is that you can't access the parent property of a script object
  1274. directly.
  1275.  
  1276. For example, this works:
  1277.  
  1278.   script foo
  1279.     on frozz()
  1280.       beep
  1281.     end frozz
  1282.   end foo
  1283.  
  1284.   script bar
  1285.     property parent : foo
  1286.     on run
  1287.       frozz()
  1288.     end run
  1289.   end bar
  1290.  
  1291.   tell bar to run
  1292.  
  1293. But this doesn't:
  1294.  
  1295.   script foo
  1296.     on frozz()
  1297.       beep
  1298.     end frozz
  1299.   end foo
  1300.  
  1301.   script bar
  1302.     on run
  1303.       frozz()
  1304.     end run
  1305.   end bar
  1306.  
  1307.   set bar's parent to foo  -- fails
  1308.   tell bar to run
  1309.  
  1310. It appears that parent is a special property.  Bummer.  It's time for an
  1311. osax to fix this thing and provide dynamic parent capabilities.  Donald
  1312. Olson has already written such a beast but he didn't think to handle this
  1313. special case, so I've reminded him and will post his osaxen when he has
  1314. finished them.  He already has a collection of osaxen that I should
  1315. probably post.  It includes osaxen to get & set script properties and
  1316. handlers, one to set the current Standard File directory and one to check
  1317. the mouse status (location and button).  I've mailed them to Fred in a
  1318. seperate message.
  1319.  
  1320. Jon
  1321. =========================================================================
  1322. Date:         Wed, 7 Sep 1994 00:30:56 -0700
  1323. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1324. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1325. From:         Jon Pugh <jonpugh@NETCOM.COM>
  1326. Subject:      Re: READ CAREFULLY: Newsgroup Poll
  1327.  
  1328. >Subject: Re: READ CAREFULLY: Newsgroup Poll
  1329. >
  1330. >Should I begin the process of creating a MacScripting newsgroup?
  1331. >
  1332. >_X___ Yes
  1333. >...
  1334.  
  1335. I think the "READ CAREFULLY" part needs to be repeated.  ;)
  1336.  
  1337. Don't reply to the list.  Mail them to Fred.
  1338.  
  1339. Sheesh.
  1340.  
  1341. Jon
  1342. =========================================================================
  1343. Date:         Wed, 7 Sep 1994 00:30:58 -0700
  1344. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1345. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1346. From:         Jon Pugh <jonpugh@NETCOM.COM>
  1347. Subject:      Re: scriptable graphics conversion
  1348.  
  1349. W. J. Proffer <proffer@SCUBED.SCUBED.COM> wrote:
  1350. >
  1351. >I have set up scripts to run an Apple Quicktake camera from a Macintosh
  1352. >http server.  It works fine, except that I haven't found a (scriptable) way
  1353. >to convert the Quicktake PICT format (which uses Quicktime and Quicktake
  1354. >extensions) to a form (e.g., normal PICT or better, GIF) viewable within a
  1355. >HTML browser.
  1356.  
  1357. <uninvited impersonal GIF flames>
  1358.  
  1359. Please, do me a favor.  Never create another GIF file in your life.  Use
  1360. JPEG instead.  You get a 24 bit file in the same space (or better
  1361. compression if you are willing to sacrifice image details).  GIF is only 8
  1362. bits and you totally lose picture quality.  The Macintosh has built in
  1363. support for 24 bits, so use it.  If you only have an 8 bit monitor, you
  1364. can't even have 2 GIFs open at once without screwing up the palettes of all
  1365. but 1 image.  They are just lame relics of the past.  Down with GIF!
  1366.  
  1367. <sorry about that>
  1368.  
  1369. >Does anybody know of a scriptable graphics program which would do a PICT to
  1370. >GIF conversion?  Apple's PhotoFlash won't get me there unless I can find an
  1371. >appropriate PhotoShop PlugIn, and the fine program "GraphicConverter"
  1372. >(which is scriptable!) won't convert formats.....
  1373.  
  1374. You can write both a standard JPEG (aka JFIF) file and a QuickTime
  1375. PICT-JPEG file (my personal preference).  The simplest way is to record one
  1376. and copy it into your script.  Just do a Save As and then delete the "in"
  1377. parameter after you paste.  That'll make it save into the same file.
  1378.  
  1379. Here's the command from memory (so it might be wrong):
  1380.  
  1381.   save as "PICT" in <file> using parameters {|Compression|:"Apple Photo-JPEG",
  1382.     |Quality|:"75"}
  1383.  
  1384. Jon
  1385. =========================================================================
  1386. Date:         Wed, 7 Sep 1994 17:58:39 +1000
  1387. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1388. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1389. From:         David Parry <dparry@OZEMAIL.COM.AU>
  1390. Subject:      Fax Merging with Word/FaxSTF/Touchbase Pro
  1391.  
  1392. I'm trying to automate a Fax merge whereby the data has originally been
  1393. held in Touchbase Pro, merged in word 5.1A and then run through FaxSTF
  1394. 2.6.1.
  1395.  
  1396. I'm using Word because the 200DPI bitmaps that are in the document seem to
  1397. come out fine through FaxSTF, whereas Touchbase Pro doesn't seem to support
  1398. pasting pictures into Fastletters, and the layout of their fax headers is
  1399. not the layout I want. Either way neither Word nor Touchbase know how to
  1400. tell FaxSTF to address each generated merge item to a particular fax
  1401. number.
  1402.  
  1403. And of course Word 5.1a is not AppleScript aware as far as I can see...,
  1404. neither is Touchbase Pro 3.0i (although 4.0 is... but no-one in Australia
  1405. wants to sell it to me!).
  1406.  
  1407. Has anyone got any suggestions? Perhaps a way of scripting the Fax Manager?
  1408.  
  1409. I'm really not that keen on addressing 1079 faxes by hand!
  1410.  
  1411. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1412. > dparry@ozemail.com.au                           Voice:  + 61 7 356 7645 <
  1413. > The System                                      Fax:    + 61 7 356 7790 <
  1414. > 46 Lansdowne Street                             DJP Mobile: 015 150 939 <
  1415. > Wilston QLD 4051                                MJE Mobile: 018 732 521 <
  1416. > Australia                                                               <
  1417. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1418. > You could get run over by a bus tomorrow... go on... have a fag!        <
  1419. >                                                                         <
  1420. >       \@\                                                               <
  1421. >        /@@/                                                             <
  1422. >       \@@@\                                                             <
  1423. >        \@@@/                                                            <
  1424. >         \@\                                                             <
  1425. >          |#|00000000000)))                                              <
  1426. >                                                                         <
  1427. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1428. =========================================================================
  1429. Date:         Wed, 7 Sep 1994 10:42:31 +0100
  1430. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1431. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1432. From:         Marco Strehler <strehler@FVMED.UNIZH.CH>
  1433. Subject:      Re: learning apple script
  1434.  
  1435. >On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
  1436. >
  1437. >> I used, initially, the Tao of AppleScript (which, in technical terms, sucked
  1438. >> the big toad in terms of usefulness).
  1439. >
  1440. >Not to take this personally or anything, but do keep in mind that Tao was
  1441. >_specifically_ designed to teach AppleScript to people who don't know
  1442. >anything about programming (literally, we used our publications person's
  1443. >mother as the acid test). I have always been the first to recommend
  1444. >either Danny's book or (now) the AS Reference for people who are more
  1445. >experienced.
  1446. >
  1447. >We weren't trying to be extremely technical and cover every single
  1448. >possible aspect of AS; we were trying to get people started with it,
  1449. >especially those who had never programmed before.
  1450. >
  1451. >Okay, so maybe I took it a _little_ personally :)
  1452. >
  1453. >Derrick Schneider
  1454. >Author, The Tao of AppleScript
  1455.  
  1456. I agree with Derrick! Even I am a experimented programmer I like the "tao".
  1457. I have done my first AppleScript-steps with this book, and I like Derrick's
  1458. way to teach.
  1459.  
  1460. My background: I'm a medical student and so I'm used to read heavy
  1461. technical books.  Specially the german technical literature is often like
  1462. walking in a desert.
  1463.  
  1464. So I think: writing a readable newbie book needs more know-how as filling a
  1465. telefon directory :-)
  1466.  
  1467. Now, of course, I use the "AppleScript Language Guide" as reference.
  1468.  
  1469. Sorry for my bad englisch :-)
  1470.  
  1471. -- Marco
  1472.  
  1473.  
  1474. ----------------------------------------------------------------
  1475.  Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
  1476.  VOICE: ++41 (0)1 810 27 03   INTERNET: strehler@fvmed.unizh.ch
  1477. ----------------------------------------------------------------
  1478. =========================================================================
  1479. Date:         Wed, 7 Sep 1994 11:47:41 +0100
  1480. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1481. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1482. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  1483. Subject:      Re: learning apple script
  1484.  
  1485. >Could someone recommend a book about applescript, or else share what
  1486. >resources you used to learn applescript.
  1487. >university of washington
  1488.  
  1489. Is it washington DC or state of washington?
  1490.  
  1491. Apple has published the AppleScript books in Adison Weslay, but I think
  1492. you can too take from the gaeo - this groups disk place, take a lot of
  1493. literature,
  1494. hypercard stack, word format documents to start.
  1495.  
  1496. For the begining at least. There are two books, but..
  1497. And then test small scripts to begin.
  1498.  
  1499. For real deep info there are Apple's Apda CD's, when it starts to be serious,
  1500. they will be necessary.
  1501.  
  1502. I go to washington DC in November, if I could help, if you are from there...
  1503.  
  1504. Chaleureusement,
  1505.  
  1506. Judith
  1507. _________________________________________
  1508. Judith Kertisz Suchard                  suchard@cnam.cnam.fr
  1509. C.N.A.M. Labo Informatique             AppleLink: cnam
  1510. 25, rue Mont Cenis                         Tel:(1) 40 27 25 57
  1511. 75018 Paris, France                     Fax: 40 27 27 72
  1512. _________________________________________
  1513. "La simpliciti, c'est le fruit d'un long effort"
  1514. =========================================================================
  1515. Date:         Wed, 7 Sep 1994 12:15:10 +0100
  1516. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1517. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1518. From:         Michael Bach <bach@SUN1.RUF.UNI-FREIBURG.DE>
  1519. Subject:      messages from FileMaker to Applets [Q]
  1520.  
  1521. Dear colleagues:
  1522.  
  1523. With the final goal of building
  1524. "if <condition> then <script1> else <script2>"
  1525. for FileMaker Pro I have tried to send events from FileMaker to AppleScript
  1526. programs. The Applet "WaitForMessage" looks partly like this:
  1527.  
  1528. on testMessage(theText)
  1529.   beep
  1530.   activate
  1531.   display dialog theText
  1532. end testMessage
  1533.  
  1534. and stays running in the background. When I send from the applescript
  1535. editor the following stuff:
  1536.  
  1537. tell application "WaitForMessage"
  1538.   testMessage("a test")
  1539. end tell
  1540.  
  1541. the message is dutifully displayed. But how can I send such a message from
  1542. FileMaker? Applets don't seem to have aete-resources. They don't seem to
  1543. handle <misc> <dosc>. What is the simple thing I have overlooked?
  1544.  
  1545. Thanks for your help, greetings, Michael.
  1546.  
  1547. Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
  1548. D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
  1549. =========================================================================
  1550. Date:         Wed, 7 Sep 1994 13:06:06 +0100
  1551. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1552. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1553. From:         Marco Strehler <strehler@FVMED.UNIZH.CH>
  1554. Subject:      Re: messages from FileMaker to Applets [Q]
  1555.  
  1556. >But how can I send such a message from
  1557. >FileMaker? Applets don't seem to have aete-resources. They don't seem to
  1558. >handle <misc> <dosc>. What is the simple thing I have overlooked?
  1559.  
  1560. Try this:
  1561. Make in your FileMaker-Script a "Send AppleEvent" command and define an
  1562. event class and an event id (e.g. "FMPr", "says") and a optional (field)
  1563. value. As target application you must define an AppleScript-Applet with
  1564. this handler:
  1565.  
  1566. on <<event FMPrsay>> theText
  1567.         display dialog "FileMaker says: " & theText
  1568. end <<event FMPrsays>>
  1569.  
  1570. ( << and >> are double angle brackets. Decimal ASCII-Code 199 and 200)
  1571.  
  1572. It's a hack, but it works :-)
  1573.  
  1574.  
  1575. -- Marco
  1576.  
  1577.  
  1578.  
  1579.  
  1580. ----------------------------------------------------------------
  1581.  Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
  1582.  VOICE: ++41 (0)1 810 27 03   INTERNET: strehler@fvmed.unizh.ch
  1583. ----------------------------------------------------------------
  1584. =========================================================================
  1585. Date:         Wed, 7 Sep 1994 13:16:01 +0100
  1586. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1587. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1588. From:         Michael Bach <bach@SUN1.RUF.UNI-FREIBURG.DE>
  1589. Subject:      Re: messages from FileMaker to Applets [Q]
  1590.  
  1591. Lieber Marco:
  1592.  
  1593. >stuff deleted
  1594. >It's a hack, but it works :-)
  1595.  
  1596. Funktioniert wunderbar, vielen Dank!
  1597. Gruesse, Michael.
  1598.  
  1599. Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
  1600. D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
  1601. =========================================================================
  1602. Date:         Wed, 7 Sep 1994 07:26:37 -0400
  1603. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1604. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1605. From:         John Schettino <js12@GTE.COM>
  1606. Subject:      Re: Eudora 2.1 and "sender"
  1607.  
  1608. >Has anyone been using the new Eudora 2.1? I'm trying to retrieve the
  1609. >"sender" email address of messages in the inbox:
  1610. >
  1611. >        set msgFrom to sender of message i of mailbox "In" of mail folder ""
  1612. >
  1613. >
  1614. >doesnt work, as you get the "sender" as it appears in the "who" column,
  1615. >which is not usually the email address. Does anyone know how to get the
  1616. >actual email address of the sender?
  1617. >
  1618.  
  1619. What you want is:
  1620.  
  1621. set msgFrom to field "From" of message i of mailbox "In" of mail folder ""
  1622.  
  1623. The 'field' can be any of the standard header fields:
  1624. From
  1625. Date
  1626. ...
  1627.  
  1628. >From the Dictionary:
  1629. Class message: A message
  1630. Elements:
  1631.         field by name *** this is what you want!!
  1632. Properties:
  1633.         sender  string  -- the sender as appearing in the message summary
  1634. ...
  1635.  
  1636. Class field: An RFC 822 header field in a message (field named "" is the body)
  1637.  
  1638.  
  1639. - john
  1640.  
  1641. -----------------------------------------
  1642. js12@gte.com             GTE Laboratories
  1643. John Schettino                Waltham, MA
  1644. =========================================================================
  1645. Date:         Wed, 7 Sep 1994 09:12:36 -0400
  1646. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1647. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1648. From:         John G Dorsey <jd5q+@ANDREW.CMU.EDU>
  1649. Subject:      Re: learning apple script
  1650. In-Reply-To:  <Added.0iPI7wu00UdbRfpk4m@andrew.cmu.edu>
  1651.  
  1652. Excerpts from internet.computing.macscrpt: 6-Sep-94 Re: learning apple
  1653. script by Derrick Schneider@NETCOM
  1654. > Not to take this personally or anything, but do keep in mind that Tao was
  1655. > _specifically_ designed to teach AppleScript to people who don't know
  1656. > anything about programming
  1657.  
  1658. Well, heck! I know C++, and I just finished learning Perl so I could
  1659. complete my WWW server; I wouldn't have finished the damn thing if it
  1660. weren't for TofA! Had to use AppleScript as the go-between for MacHTTP
  1661. and MacPerl - Tao's one little example of reading the entire contents of
  1662. a text file was well worth whatever 'shortcomings' were present in the
  1663. rest of the book... incidentally, the Addison Wesley book (and all the
  1664. Netted folks I asked) had nothing to say on this topic. =(
  1665.  
  1666. $0.02
  1667.  
  1668. Have fun,
  1669. John Dorsey                      <jd5q+@andrew.cmu.edu>
  1670. Carnegie Mellon University      <jdo240@ohm.ece.cmu.edu>
  1671. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1672.  ftp://lightspeed.pc.cc.cmu.edu/
  1673. http://lightspeed.pc.cc.cmu.edu/
  1674.     (under construction!)
  1675. =========================================================================
  1676. Date:         Wed, 7 Sep 1994 15:25:46 +0200
  1677. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1678. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1679. From:         Lutz Weimann <weimann@ZIB-BERLIN.DE>
  1680. Subject:      Re: Eudora 2.1 and "sender" / What does this mean?
  1681.  
  1682. Sorry about my previous mail and thanks for you kind explanation about
  1683. these elements of Eudora scripting.
  1684.  
  1685. The reason why I sent this was, that my Eudora (2.0.3) or the POP-mailer
  1686. here split up your message into two chunks, where the second chunk didn't
  1687. had any mail-header and the from field in my in-box just appeared to be
  1688. ???@??? - it was just the complete second chunck which I cited in my
  1689. message before.  The ???@??? really confused me, and later, I realized that
  1690. there was a preceeding (first) chunck of this message. (Reading the second
  1691. one before, I found your e-mail address only within your signature ...;-) )
  1692. .
  1693.  
  1694. The splitting problem was due to citing the following mail-headers within
  1695. your message:
  1696. >From
  1697. >Date
  1698. >...
  1699. A simple method to prevent such splitting is to insert just a single space
  1700. as the first character of cited header texts (like "From" or "Date").
  1701.  
  1702. Kindly,
  1703. Lutz Weimann
  1704.  
  1705. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1706. Lutz Weimann                      INTERNET: weimann@zib-berlin.de
  1707. Konrad-Zuse-Zentrum fuer          X400:     C=de;A=d400;
  1708. Informationstechnik Berlin (ZIB)            P=zib-berlin;S=weimann
  1709. Heilbronner Str. 10               PHONE:    +49 30 / 89604-185
  1710. D-10711 Berlin-Wilmersdorf        FAX:      +49 30 / 89604-125
  1711. =========================================================================
  1712. Date:         Wed, 7 Sep 1994 09:50:57 EDT
  1713. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1714. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1715. From:         Danny Goodman <DGoodman@AOL.COM>
  1716. Subject:      Re: learning apple script
  1717.  
  1718. >it might pay to await the upcoming second edition (AppleScript Handbook)
  1719.  
  1720. It may not pay.  That edition won't be out until we all are using new
  1721. calendars.
  1722.  
  1723. Danny
  1724. =========================================================================
  1725. Date:         Wed, 7 Sep 1994 08:52:39 CDT
  1726. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1727. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1728. From:         Tom Donovan <donovan@COVIS.NWU.EDU>
  1729. Subject:      Re: Eudora 2.1 and "sender"
  1730.  
  1731. >Has anyone been using the new Eudora 2.1? I'm trying to retrieve the
  1732. >"sender" email address of messages in the inbox:
  1733. >
  1734. >        set msgFrom to sender of message i of mailbox "In" of mail folder ""
  1735. >
  1736. >
  1737. >doesnt work, as you get the "sender" as it appears in the "who" column,
  1738. >which is not usually the email address. Does anyone know how to get the
  1739. >actual email address of the sender?
  1740. >
  1741. >
  1742. >thanx
  1743. >
  1744. >- bill
  1745. >
  1746. >
  1747.  
  1748. Have you tried
  1749.  
  1750.         set msgFrom to field "From" of ...
  1751.  
  1752. ?
  1753.  
  1754. --Tom
  1755.  
  1756. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1757. Tom Donovan             "The city is a place where a small boy, as he walks
  1758. Technology Facilitator   through it, may see something that will tell him
  1759. Glen Grove School        what he wants to do his whole life."
  1760. Glenview, Illinois                                          --Louis I. Kahn
  1761. E-mail: donovant@ncook.k12.il.us, donovan@covis.nwu.edu
  1762. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1763. =========================================================================
  1764. Date:         Wed, 7 Sep 1994 10:02:50 -0400
  1765. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1766. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1767. From:         David Brown <dlb1@SEQUOIA.LLE.ROCHESTER.EDU>
  1768. Subject:      Recent History (or:learning apple script)
  1769.  
  1770. Roy Rapoport wrote:
  1771.  
  1772. >I used, initially, the Tao of AppleScript (which, in technical terms, sucked
  1773. >the big toad in terms of usefulness)...
  1774.  
  1775. I don't intend to pick on Roy, but does anyone else feel that Tao is
  1776. getting the short end lately?  I'll agree that the book is limited compared
  1777. to other current offerings, but many of us did buy it for a reason.  For
  1778. me, the purchase of a simple introduction plus AppleScript 1.0 plus some
  1779. useful scriptable tools (e.g., Progress Bar) was well worth the low cost.
  1780. It's easy to forget that it was one of the first (was it THE first)
  1781. low-cost ways to start scripting.  Technically it had some problems,
  1782. especially for the (now) advanced scripters, but it was out very early.  I
  1783. was certainly glad it was available at that time.  I don't think it
  1784. deserves such strong language.
  1785.  
  1786. -- Dave (just my two or three cents) Brown, who has no connection with the book.
  1787. =========================================================================
  1788. Date:         Wed, 7 Sep 1994 09:37:06 -0500
  1789. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1790. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1791. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  1792. Subject:      Re: learning apple script
  1793.  
  1794. >Could someone recommend a book about applescript, or else share what
  1795. >resources you used to learn applescript.
  1796. >
  1797. >TIA!
  1798. >
  1799. >A newbie scripter...
  1800. >james lane
  1801. >university of washington
  1802. >office of technology transfer
  1803. >lanej@u.washington.edu
  1804.  
  1805.  
  1806. There are three sourses of Information (none of them will set the world on
  1807. fire) but they are more than sufficient for your purposes.
  1808.  
  1809. First, there is Derrick Schneider "Tao of Applescript" which contrary to
  1810. popular opinion is quite a good book and deals effictevely with subject at
  1811. a basic level.
  1812. Secondly there is the Danny Goodmans book (which I have only borrowed for a
  1813. few days but based on this I have ordered a copy). It is a better all
  1814. rounder than the first option. That is as much as I can fairly say.
  1815. Thirdly there are the official Apple docs (enough said). They tend to
  1816. plummit the usual depths of technical literature.
  1817.  
  1818. The above information you will have repeated to you many times (except for
  1819. the opinions :-) )
  1820.  
  1821. Learning by trial and error is not impossible and is the method I used when
  1822. I started to learn AS. You will get some guarded information from this list
  1823. but I would say that you should depend mostly on your own devices and the
  1824. first two refrences mentioned above. Finally, it is well worth the effort
  1825. you will put forth as AS is certainly the most useful extension to the
  1826. Macintosh since its inception (my opinion yet again).
  1827.  
  1828. Good Luck and Hopefully we will hear more from you as things progress.
  1829.  
  1830. Frank C.
  1831. R&E
  1832. =========================================================================
  1833. Date:         Wed, 7 Sep 1994 10:25:56 -0500
  1834. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1835. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1836. From:         Fred Terry <pfterry@LKS.CSI.COM>
  1837. Subject:      Re: Recent History (or:learning apple script)
  1838. In-Reply-To:  Your message of "Wed, 07 Sep 94 10:02:50 EDT"
  1839.  
  1840. David Brown replied to Roy Roper's message.....
  1841. >
  1842. >>I used, initially, the Tao of AppleScript (which, in technical terms, sucked
  1843. >>the big toad in terms of usefulness)...
  1844. >
  1845. >I don't intend to pick on Roy, but does anyone else feel that Tao is
  1846. >getting the short end lately?  I'll agree that the book is limited compared
  1847. >to other current offerings, but many of us did buy it for a reason.  For
  1848. >me, the purchase of a simple introduction plus AppleScript 1.0 plus some
  1849. >useful scriptable tools (e.g., Progress Bar) was well worth the low cost.
  1850. >It's easy to forget that it was one of the first (was it THE first)
  1851. >low-cost ways to start scripting.  Technically it had some problems,
  1852. >especially for the (now) advanced scripters, but it was out very early.  I
  1853. >was certainly glad it was available at that time.  I don't think it
  1854. >deserves such strong language.
  1855.  
  1856. Derrick's was THE FIRST book out and it included AppleScript back before there
  1857. was an easy way for most people to get it. And get it cheaply, I might add.
  1858. David's right, it's been dumped on quite a bit lately. Given the fact that
  1859. Derrick's on the list, our language (and/or condemnation?) has been a bit
  1860. strong. Ask yourself if you would say repeatedly to someone's face that what
  1861. they've dumped months of their life into sucked?
  1862.  
  1863. (Okay, okay, I'll put away my netiquette badge now.)
  1864.  
  1865. pf
  1866. just another writer with an ego
  1867.  
  1868.  
  1869. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  1870. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  1871. =========================================================================
  1872. Date:         Wed, 7 Sep 1994 11:50:09 -0400
  1873. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1874. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1875. From:         "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
  1876. Subject:      ? on GTQ object database
  1877.  
  1878. I need some help.  I keep getting an error ("the app can't tell me what
  1879. kind") when I try to use the create database command from the Object
  1880. Database osax (GTQ Scripting Library).  Why doesn't this work?
  1881.  
  1882. Thanks,
  1883.  
  1884. Kevin
  1885. =========================================================================
  1886. Date:         Wed, 7 Sep 1994 09:03:44 -0700
  1887. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1888. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1889. From:         "David A. Rogers" <davidr@HALCYON.COM>
  1890. Subject:      Re: learning apple script
  1891.  
  1892. >>it might pay to await the upcoming second edition (AppleScript Handbook)
  1893. >
  1894. >It may not pay.  That edition won't be out until we all are using new
  1895. >calendars.
  1896. >
  1897. >Danny
  1898.  
  1899.  
  1900. Danny,
  1901.  
  1902. If I agree to start using a different calendar, can I have a pre-release
  1903. copy now? <grin>
  1904.  
  1905.  
  1906. ---
  1907. David A. Rogers
  1908. david.rogers@aldus.com
  1909. davidr@halcyon.com
  1910. =========================================================================
  1911. Date:         Wed, 7 Sep 1994 11:07:44 -0500
  1912. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1913. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1914. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  1915. Subject:      Re: Recent History (or:learning apple script)
  1916.  
  1917. >Roy Rapoport wrote:
  1918. >
  1919. >>I used, initially, the Tao of AppleScript (which, in technical terms, sucked
  1920. >>the big toad in terms of usefulness)...
  1921. >
  1922. >I don't intend to pick on Roy, but does anyone else feel that Tao is
  1923. >getting the short end lately?  I'll agree that the book is limited compared
  1924. >to other current offerings, but many of us did buy it for a reason.  For
  1925. >me, the purchase of a simple introduction plus AppleScript 1.0 plus some
  1926. >useful scriptable tools (e.g., Progress Bar) was well worth the low cost.
  1927. >It's easy to forget that it was one of the first (was it THE first)
  1928. >low-cost ways to start scripting.  Technically it had some problems,
  1929. >especially for the (now) advanced scripters, but it was out very early.  I
  1930. >was certainly glad it was available at that time.  I don't think it
  1931. >deserves such strong language.
  1932. >
  1933. >-- Dave (just my two or three cents) Brown, who has no connection with the
  1934. >book.
  1935.  
  1936.  
  1937. Yep. I think that the book certainly was worth every cent I spent on it. I
  1938. a field (still) devoid of any decent literature it was extremely usefull
  1939. and I would think still usefull to anyone starting to AS. The problem is
  1940. not the book but a certain lack of self control on the part of would be
  1941. critics.
  1942.  
  1943. Frank C.
  1944. R&E
  1945. =========================================================================
  1946. Date:         Wed, 7 Sep 1994 09:22:07 -0800
  1947. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1948. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1949. From:         Preston Holmes <pholmes@UCSD.EDU>
  1950. Subject:      A Newbie perspective on learning AS
  1951.  
  1952. Well I have never programed before (except for .bat files when I used DOS
  1953. which doesn't count).  And for me Applescript was a compromise, as I knew I
  1954. didn't have time to learn a full blown language - and applescript appears
  1955. to be able to do most of what I want.
  1956. I'm about half way through Danny's 'applescript handbook' and am finding it
  1957. pretty usable as a non programer.  Some of the more difficult stuff I have
  1958. to reread but I expect to be a little confused, as I learn better if I
  1959. really have to figure things out on my own.  What I would really like is
  1960. consolidated application based FAQs (ie scripting Eudora or scripting
  1961. Anarchie) as trial and error is frustrating.  I don't think applescript (or
  1962. anything very powerful) will ever be appropriate for anyone who is easily
  1963. intimidated by more gut level computer operations (despite AS's Englishisms
  1964. it is still essentially a type of programing).  I think an infinite amount
  1965. of handholding won't do much good.  AS is better than anything else I've
  1966. seen but you still have to really WANT to learn it and be prepared to spend
  1967. some time (and hair) with it.  But I'm having lots of fun.
  1968.  
  1969. -Preston
  1970.  
  1971. --
  1972. Preston Holmes                  (h)619-453-9209
  1973. Dept. of Neuroscience, UCSD
  1974. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  1975. =========================================================================
  1976. Date:         Wed, 7 Sep 1994 09:49:19 -0700
  1977. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1978. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  1979. From:         Derrick Schneider <derrick@NETCOM.COM>
  1980. Subject:      Re: learning apple script
  1981. In-Reply-To:  <199409070711.AAA21439@netcom15.netcom.com>
  1982.  
  1983. On Tue, 6 Sep 1994, John W. Baxter wrote:
  1984.  
  1985. > With respect to "Tao", it is important to be sure you are picking up the
  1986. > Second Edition, not the first, if you decide Tao is right for you.
  1987.  
  1988. Thanks for mentioning that, John. The second edition is a big improvement
  1989. over the first, IMHO, and I would highly encourage getting it
  1990.  
  1991. Thanks also to the rest of you for your support in this thread. I don't
  1992. mind criticism of the book at all, especially since it helps if(when) I
  1993. do another edition. Comments about the first definitely got listened to
  1994. when the second was being done (even little things like including the
  1995. scripts on the disk), and the same will be true if there is ever a third.
  1996.  
  1997. However, I don't mind good things being said, either! :)
  1998.  
  1999. Derrick
  2000. =========================================================================
  2001. Date:         Wed, 7 Sep 1994 09:55:39 -0700
  2002. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2003. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2004. From:         Derrick Schneider <derrick@NETCOM.COM>
  2005. Subject:      Re: learning apple script
  2006. In-Reply-To:  <199409070503.WAA05190@netcom15.netcom.com>
  2007.  
  2008. On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
  2009.  
  2010. > the TofA, for me, sucked.  It taught me how to do 2+2 in AS and introduced
  2011. > the basic concepts of AS, but AS A REFERENCE MANUAL IT SUCKED.
  2012. >
  2013. > Now, obviously it's supposed to suck, as Derrick says above -- it's not
  2014. > supposed to be a reference manual.  As something to introduce people who get
  2015. > a stroke when thinking of opening a control panel to AppleScript, it's
  2016. > superb.  Good job.  It's just that I've mucked with my mac long enough, and
  2017. > am confident (well, arrogant) enough to think I know what I'm doing, so the
  2018. > TofA sucked for my purposes.
  2019.  
  2020. > Any better, Derrick? :)
  2021. >
  2022. > (seriously, it's a good introduction, I guess)
  2023.  
  2024. I agree with Roy. It's not a reference manual. Truth be told, I use
  2025. Danny's book plus the AS Language Guide for my references. I'm probably
  2026. not supposed to say things like that, but hopefully Hayden isn't
  2027. monitoring this mailing list!
  2028.  
  2029. My usual advice to people who want to learn AS is to buy all three! That
  2030. way, there's no need for a competition.
  2031.  
  2032. Derrick
  2033. =========================================================================
  2034. Date:         Wed, 7 Sep 1994 10:31:00 -0700
  2035. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2036. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2037. From:         Steve Kalkwarf <kalkwarf@NETCOM.COM>
  2038. Subject:      Re: Recent History (or:learning apple script)
  2039.  
  2040. >>I used, initially, the Tao of AppleScript (which, in technical terms, sucked
  2041. >>the big toad in terms of usefulness)...
  2042.  
  2043. >I don't intend to pick on Roy, but does anyone else feel that Tao is
  2044. >getting the short end lately?
  2045.  
  2046. I was very unhappy with my purchase. The biggest problem was that lots of
  2047. the sample scripts were just plain wrong. Some didn't syntax check, some
  2048. didn't run properly when compiled. My margins are filled with notes
  2049. correcting scripts, up until around chapter 8, when I gave up. If this is
  2050. intended to be an introduction to scripting for the code illiterate, I
  2051. think the errors would turn people off forever. Can you imagine your mother
  2052. typing in a script from the book, and getting errors? And then continuing
  2053. with the process? Not my mom...
  2054.  
  2055. Steve
  2056. =========================================================================
  2057. Date:         Wed, 7 Sep 1994 11:07:22 -0800
  2058. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2059. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2060. From:         "W. J. Proffer" <proffer@SCUBED.SCUBED.COM>
  2061. Subject:      Re: scriptable graphics conversion
  2062.  
  2063. >
  2064. >Here's the command from memory (so it might be wrong):
  2065. >
  2066. >  save as "PICT" in <file> using parameters {|Compression|:"Apple Photo-JPEG",
  2067. >    |Quality|:"75"}
  2068. >
  2069. >Jon
  2070.  
  2071. This may just work.  I don't much like GIF either (because I don't much
  2072. care for Compuserve), but unfortunately that and xbm are the only (current)
  2073. native formats for Web browser windows.....
  2074.  
  2075. thanks,
  2076.  
  2077. bill
  2078.  
  2079. <pre>
  2080. William J. Proffer
  2081. Senior Staff Scientist
  2082. Test Technology Group
  2083. S-Cubed, A Division of Maxwell Labs
  2084. 3398 Carmel Mountain Road
  2085. San Diego, CA  92038-1095
  2086. (619) 453-0060
  2087. (619) 755-0474 (fax)
  2088. proffer@scubed.com
  2089. World Wide Web URL:  http://www.scubed.com:8001/
  2090. </pre>
  2091. =========================================================================
  2092. Date:         Wed, 7 Sep 1994 11:31:19 -0700
  2093. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2094. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2095. From:         "Glenn L. Austin" <glenn_a@EFN.ORG>
  2096. Subject:      Re: mail missing...
  2097.  
  2098. >> Since Sat, 3rd sept I do not get the mail from the mailing group!
  2099. >> what is happening?
  2100. >> X
  2101. >
  2102. >I checked with David Avery (the listserv god at Dartmouth). He tells me that
  2103. >the MacScripting list was set to hold due to a disk-related error. He says
  2104. >that it's set to free now, so we should begin seeing messages.
  2105.  
  2106. Fred,
  2107.  
  2108. Can you remove my glenn@gla-aux.uucp entry in the list (otherwise known as
  2109. gla-aux!glenn@skinner.cs.uoregon.edu)?  I'm not able to use that feed
  2110. anymore, and wasn't able to get off the listserver with that address before
  2111. it disappeared.  I'm currently getting the mail items forwarded to
  2112. glenn_a@efn.org, so if you can make sure that that entry IS in the
  2113. listserver?  Thanks!
  2114.  
  2115. //
  2116. // Glenn L. Austin
  2117. // Computer Wizard and Racing Car Driver
  2118. // Internet:  glenn_a@efn.org
  2119. //
  2120. =========================================================================
  2121. Date:         Wed, 7 Sep 1994 12:04:20 -0700
  2122. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2123. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2124. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2125. Subject:      Re: learning apple script
  2126.  
  2127. >>it might pay to await the upcoming second edition (AppleScript Handbook)
  2128. >
  2129. >It may not pay.  That edition won't be out until we all are using new
  2130. >calendars.
  2131.  
  2132. True (that's why the "might")...it all depends upon what one needs/wants.
  2133. If one wants to start out now with "Handbook", one will wind up buying both
  2134. editions...that's fine.
  2135.  
  2136. If one is in a position in which starting with Tao makes sense, then one
  2137. probably buys Tao 2nd now, the Addison-Wesley Script Language Guide soon
  2138. for reference, and Handbook 2nd when available.
  2139.  
  2140. Handbook first edition is very usable (provided you can get the update disk
  2141. from the publisher to cover the AppleScript 1.1 changes).  [What I grab
  2142. first for reference is the Addison-Wesley book, because it is up to date.]
  2143.  
  2144.    --John
  2145.  
  2146. --
  2147. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2148. =========================================================================
  2149. Date:         Wed, 7 Sep 1994 12:04:24 -0700
  2150. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2151. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2152. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2153. Subject:      Re: Recent History (or:learning apple script)
  2154.  
  2155. At 10:02 9/7/94 -0400, David Brown wrote:
  2156. >... but does anyone else feel that Tao is
  2157. >getting the short end lately?  I'll agree that the book is limited compared
  2158. >to other current offerings, but many of us did buy it for a reason.
  2159.  
  2160. I agree completely.  Tao was highly useful when published, and was more
  2161. correct technically than the three-hole-punched version of what became the
  2162. AppleScript Language Guide, as that was found in the version 1.0
  2163. AppleScript Developer Toolkit from APDA.
  2164.  
  2165. AppleScript was not only very late, it also appears to have been a moving
  2166. target right up until after the release of 1.0 (and Tao, and Handbook)
  2167. (witness 1.1 appearing right after 1.0 was frozen into System 7 Pro).
  2168.  
  2169. Derrick did very well in what he tried to do (an early book for non-gurus)
  2170. given the moving target.  A quick bookstore scan of 2nd Edition of Tao
  2171. suggests great improvements were made, now that AppleScript has matured.
  2172.  
  2173.    --John
  2174.  
  2175. --
  2176. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2177. =========================================================================
  2178. Date:         Wed, 7 Sep 1994 12:19:01 PDT
  2179. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2180. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2181. From:         Steven Chang <stchang@RPAL.ROCKWELL.COM>
  2182. Subject:      Using Apple Script in a C program
  2183.  
  2184. What is the best way to use Apple Script in a C project?  Is there a FAQ on
  2185. this or a book that covers this.
  2186.  
  2187.  
  2188. Steven K. Chang
  2189. stchang@leland.stanford.edu
  2190. =========================================================================
  2191. Date:         Wed, 7 Sep 1994 15:46:59 -0400
  2192. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2193. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2194. From:         anthony brown <ANBROWN@HUSC.BITNET>
  2195. Subject:      minimum hardware requirements for as 1.1?
  2196.  
  2197. Can anyone tell me what the minimum hardware requirements for running
  2198. applescript 1.1 are?  Can I run it on anymac, or is it like quicktim that
  2199. I need at least a mac II to run it?
  2200.  
  2201. Anthony
  2202.  
  2203. -- The Dolphins will win the Super Bowl this season!
  2204.  
  2205. -- Anthony Brown, Macintosh Development Intern
  2206. -- Harvard University
  2207. =========================================================================
  2208. Date:         Wed, 7 Sep 1994 14:56:00 CDT
  2209. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2210. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2211. From:         "For every action there is an equal and opposite reaction."
  2212.               <yosus@MCS.COM>
  2213. Subject:      Help with a script
  2214.  
  2215.    I'm tired of all of this nit-picking about the books, enough already. Do
  2216. people just want to write in just to verify their existance?
  2217.   Can somebody help me with a script? I am trying to write an applescript
  2218. that will........at a certain time on a certain date open a SimpleText
  2219. file, read it with the speech mgr. and then quit SimpleText.
  2220.  
  2221. Yours drooley.........KingShit
  2222. =========================================================================
  2223. Date:         Wed, 7 Sep 1994 14:59:00 CDT
  2224. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2225. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2226. From:         "For every action there is an equal and opposite reaction."
  2227.               <yosus@MCS.COM>
  2228. Subject:      Help with a script
  2229.  
  2230.   I'm tired of all of this nit-picking about the books, enough already. Do
  2231. people just want to write in just to verify their existance?
  2232.   Can somebody help me with a script? I am trying to write an applescript
  2233. that will........at a certain time on a certain date open a SimpleText
  2234. file, read it with the speech mgr. and then quit SimpleText.
  2235. ....................KingShit
  2236.  
  2237. Yours drooley.........KingShit
  2238. =========================================================================
  2239. Date:         Wed, 7 Sep 1994 15:18:27 U
  2240. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2241. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2242. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  2243. Subject:      Launching Excel from Fronti
  2244.  
  2245.                        Subject:                               Time:1:27 PM
  2246.   OFFICE MEMO          Launching Excel from Frontier          Date:9/7/94
  2247. I'm trying to launch Excel 4 with a specific spreadsheet from Frontier 3.0.3.
  2248. I've tried the verb, app.startWithDocument, both in a script and in the
  2249. QuickScript window. The latter method seems fairly reliable, i.e. Excel
  2250. launches with the document I want. Using the verb in a script in the form:
  2251. ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
  2252. ...does *not* work. Excel starts up but hangs before it gets to drawing its
  2253. toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and return
  2254. control to me. Removing the 'ok' variable yields a small measure of success;
  2255. Excel may comeup once or twice before it locks up the whole system. In both
  2256. cases, the statements are being executed within a try statement.
  2257. My copy of Excel seems healthy in all other ways; I use it everyday without
  2258. incident. Likewise Frontier. I haven't tried too many alternatives, largely
  2259. because app.startWithDocument so precisely fits my needs. But I am totally open
  2260. to other methods provided they accomplish the same goal.
  2261.  
  2262. Any ideas from the Frontier-gurus?
  2263.  
  2264. Mark Stewart
  2265. BIAD-Research Imaging Center
  2266. UTHSCSA
  2267. =========================================================================
  2268. Date:         Wed, 7 Sep 1994 16:13:34 -0400
  2269. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2270. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2271. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  2272. Subject:      Re: minimum hardware requirements for as 1.1?
  2273. In-Reply-To:  <no.id> from "anthony brown" at Sep 7, 94 03:46:59 pm
  2274.  
  2275. --anthony brown wrote:
  2276. >
  2277. >Can anyone tell me what the minimum hardware requirements for running
  2278. >applescript 1.1 are?  Can I run it on anymac, or is it like quicktim that
  2279. >I need at least a mac II to run it?
  2280.  
  2281.     I'm pretty sure that AppleScript can be installed and run on any Mac
  2282. that is running System 7, or better.
  2283.  
  2284. -Hades
  2285. =========================================================================
  2286. Date:         Wed, 7 Sep 1994 15:27:00 U
  2287. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2288. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2289. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  2290. Subject:      Cutting & pasting w Apple E
  2291.  
  2292.                        Subject:                               Time:3:14 PM
  2293.   OFFICE MEMO          Cutting & pasting w Apple Events       Date:9/7/94
  2294. I have an Excel spreadsheet which I use to record information for later
  2295. indexing. I've developed a nice little formatting template (not to be confused
  2296. with a document template) which I apply to consecutive ranges of cells to make
  2297. the data more eyeball-friendly.
  2298. I've played around with automating the process of applying this formatting via
  2299. Apple Events. Using Frontier and the Object Model I can do various some pretty
  2300. cool things. What I can't figure out is how to emulate, directly or indirectly,
  2301. the effect of copying the formatting of my template and pasting it into the
  2302. next group of cells.
  2303. Has anybody had much experience automating Excel in a similiar way?
  2304.  
  2305. Mark Stewart
  2306. BIAD-Research Imaging Center
  2307. =========================================================================
  2308. Date:         Wed, 7 Sep 1994 15:30:50 -0500
  2309. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2310. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2311. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2312. Subject:      Re: ** File Tracker upgrade info **
  2313. In-Reply-To:  Your message of "Wed, 07 Sep 94 15:18:31 EDT"
  2314.  
  2315. Everyone,
  2316.  
  2317. You'll find a couple of new items on gaea. Mark Aiken has released FileTracker
  2318. 1.5, and Full Moon software has passed along an updater for ScriptWizard. The
  2319. URLs are
  2320.  
  2321. ftp://gaea.kgs.ukans.edu/applescript/addons/FileTracker15.sit.hqx
  2322. ftp://gaea.kgs.ukans.edu/applescript/demos/ScriptWiz1.0->1.0.1x41.sea.hqx
  2323.  
  2324. Cheers.
  2325.  
  2326. pf
  2327.  
  2328.  
  2329. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2330. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  2331. =========================================================================
  2332. Date:         Wed, 7 Sep 1994 13:05:59 -0700
  2333. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2334. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2335. From:         Peter Delevoryas <pdel@NETCOM.COM>
  2336. Subject:      Re: Recent History (or:learning apple script)
  2337. In-Reply-To:  Your message of "Wed,
  2338.               07 Sep 94 10:25:56 CDT." <199409071617.JAA24241@ads.com>
  2339.  
  2340. > Ask yourself if you would say repeatedly to someone's face that what
  2341. they've dumped months of their life into sucked?
  2342.  
  2343. Exactly.
  2344.  
  2345. Maybe the critics could try writing a book for us to review?
  2346.  
  2347. I've used the Tao book.
  2348. I'm now using applescript and looking forward to learning more.
  2349. =========================================================================
  2350. Date:         Wed, 7 Sep 1994 15:51:25 -0600
  2351. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2352. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2353. From:         Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM>
  2354. Subject:      None
  2355.  
  2356. REGARDING                None
  2357. >Mark Stewart:
  2358. >What I can't figure out is how to emulate, directly or indirectly,
  2359. >the effect of copying the formatting of my template and pasting it into >the
  2360. next group of cells.
  2361. >Has anybody had much experience automating Excel in a similiar way?
  2362.  
  2363.     You might consider contacting ISIS International about their "S7PX".  It is
  2364. a collection of Excel add-in's that allow you to communicate readily with
  2365. Frontier and to execute generic AppleEvents when a worksheet is recalculated.
  2366. You can actually include the AE command in a cell formula!
  2367.     Tres cool.
  2368.  
  2369. ---------------------------------------------------------------------------
  2370. |   Motorola                                   rwvr90@email.sps.mot.com   |
  2371. |   OE110                                                                 |
  2372. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  2373. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  2374. ---------------------------------------------------------------------------
  2375. =========================================================================
  2376. Date:         Wed, 7 Sep 1994 16:38:20 -0500
  2377. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2378. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2379. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2380. Subject:      Frontier/PageMaker glue
  2381.  
  2382. Howdy again,
  2383.  
  2384. John Baxter has passed along a glue file for PageMaker 5.0. You'll find it in
  2385.  
  2386. ftp://gaea.kgs.ukans.edu/frontier/gluefiles/PM_Frontier_Glue_pkg.sit.hqx
  2387.  
  2388. John says this about the package:
  2389.  
  2390. >   This is a package which provides "glue" for scripting PageMaker 5.0 in
  2391. >Frontier.  [PageMaker does Do Script...the glue makes that make sense.]
  2392. >Many hands contributed to the package, which was brought together by Pete
  2393. >Dako.  Other key players were Stephen Toutonghi, Chris Mahnken, and Tom
  2394. >Petaccia.
  2395. >
  2396. >   This is "postcardware".
  2397. >
  2398. >   The primary documentation would be the Aldus Script Langauge Guide for
  2399. >PageMaker.
  2400. >
  2401. >   Can also be used with Frontier Runtime...those who prefer to write in
  2402. >AppleScript will find some example scripts in that language (which Pete
  2403. >learned long after he learned his first programming language:
  2404. >UserTalk)...I believe that Frontier Runtime would need to be running, but I
  2405. >don't know that (I don't have PageMaker).
  2406.  
  2407. Enjoy.
  2408.  
  2409. pf
  2410. =========================================================================
  2411. Date:         Wed, 7 Sep 1994 14:40:18 -0700
  2412. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2413. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2414. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2415. Subject:      Re: Using Apple Script in a C program
  2416.  
  2417. >What is the best way to use Apple Script in a C project?  Is there a FAQ on
  2418. >this or a book that covers this.
  2419.  
  2420. Inside Macintosh:  Interapplication Communication has all you need to know.
  2421. Another useful form of the information is in a two-article series by Paul
  2422. Smith in "develop" magazine, issues 18 and 19.  (Several earlier "develop"
  2423. issues also had coverage.)
  2424.  
  2425. If you don't want to get fancy, it's really pretty simple to "say to
  2426. AppleScript":  here, compile this text and run it and tell me what happens.
  2427. And it's only a little harder if you do want to get fancy.
  2428.  
  2429.  
  2430.    --John
  2431.  
  2432. --
  2433. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2434. =========================================================================
  2435. Date:         Wed, 7 Sep 1994 15:07:02 -0800
  2436. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2437. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2438. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  2439. Subject:      Re: Help with a script
  2440.  
  2441. >   Can somebody help me with a script? I am trying to write an applescript
  2442. > that will........at a certain time on a certain date open a
  2443. > SimpleText file, read it with the speech mgr. and then quit SimpleText.
  2444.  
  2445.  
  2446. Suggestion: Split it into two parts:
  2447. A) Scheduler
  2448. B) Speech part.
  2449.  
  2450. The scheduler part is easy -- use Chronographer (shareware).  The rest
  2451. someone who actually uses the Speech manager will hve to help with ...
  2452.  
  2453. -roy
  2454. =========================================================================
  2455. Date:         Wed, 7 Sep 1994 15:11:28 -0800
  2456. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2457. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2458. From:         David Lewis <lewis@NETCOM.COM>
  2459. Subject:      Re: Launching Excel from Frontier
  2460.  
  2461. >I'm trying to launch Excel 4 with a specific spreadsheet from Frontier 3.0.3.
  2462. >I've tried the verb, app.startWithDocument, both in a script and in the
  2463. >QuickScript window. The latter method seems fairly reliable, i.e. Excel
  2464. >launches with the document I want. Using the verb in a script in the form:
  2465. >ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
  2466. >...does *not* work. Excel starts up but hangs before it gets to drawing its
  2467. >toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and return
  2468. >control to me. Removing the 'ok' variable yields a small measure of success;
  2469. >Excel may comeup once or twice before it locks up the whole system. In both
  2470. >cases, the statements are being executed within a try statement.
  2471. >My copy of Excel seems healthy in all other ways; I use it everyday without
  2472. >incident. Likewise Frontier. I haven't tried too many alternatives, largely
  2473. >because app.startWithDocument so precisely fits my needs. But I am totally open
  2474. >to other methods provided they accomplish the same goal.
  2475. >
  2476. >Any ideas from the Frontier-gurus?
  2477. >
  2478. I think your problem is that you're passing the address of the cell
  2479. containing the file path instead of the file path itself. I just executed
  2480. the following from a script with no problem:
  2481.  
  2482.         app.startWithDocument ("JPEGView", scratchpad.JPEGFile)
  2483.  
  2484. Just for drill, I guess I'd also make sure that the contents of
  2485. docAddressInObjectDbase is of type file-spec, coercing it if necessary.
  2486.  
  2487.         David
  2488.  
  2489. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  2490. =========================================================================
  2491. Date:         Wed, 7 Sep 1994 17:23:35 U
  2492. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2493. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2494. From:         Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
  2495. Subject:      Re: Launching Excel from Fro
  2496.  
  2497.         Reply to:   RE>Launching Excel from Fronti
  2498. >I'm trying to launch Excel 4 with a specific spreadsheet from Frontier
  2499. 3.0.3.
  2500. >I've tried the verb, app.startWithDocument, both in a script and in the
  2501. >QuickScript window. The latter method seems fairly reliable, i.e. Excel
  2502. >launches with the document I want. Using the verb in a script in the form:
  2503. >ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
  2504. >...does *not* work. Excel starts up but hangs before it gets to drawing its
  2505. >toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and
  2506. return
  2507. >control to me. Removing the 'ok' variable yields a small measure of success;
  2508. >Excel may comeup once or twice before it locks up the whole system. In both
  2509. >cases, the statements are being executed within a try statement.
  2510. >My copy of Excel seems healthy in all other ways; I use it everyday without
  2511. >incident. Likewise Frontier. I haven't tried too many alternatives, largely
  2512. >because app.startWithDocument so precisely fits my needs. But I am totally
  2513. open
  2514. >to other methods provided they accomplish the same goal.
  2515. >
  2516. >Any ideas from the Frontier-gurus?
  2517. >
  2518. >Mark Stewart
  2519. >BIAD-Research Imaging Center
  2520. >UTHSCSA
  2521.  
  2522.  
  2523.  
  2524.     Is Excel also displaying an unneeded open dialog box?  Don't forget to
  2525. set setEventInteraction() to false, otherwise Excel will wait tirelessly for
  2526. you to select a file to open in it's dialog box.
  2527.     I've not had the problem you're having....
  2528.  
  2529. ---------------------------------------------------------------------------
  2530. |   Motorola                                   rwvr90@email.sps.mot.com   |
  2531. |   OE110                                                                 |
  2532. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  2533. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  2534. ---------------------------------------------------------------------------
  2535. =========================================================================
  2536. Date:         Wed, 7 Sep 1994 17:31:53 U
  2537. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2538. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2539. From:         Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
  2540. Subject:      Re: Help with a script
  2541.  
  2542.         Reply to:   RE>>Help with a script
  2543. >>   Can somebody help me with a script? I am trying to write an applescript
  2544. >> that will........at a certain time on a certain date open a
  2545. >> SimpleText file, read it with the speech mgr. and then quit SimpleText.
  2546. >
  2547. >
  2548. >Suggestion: Split it into two parts:
  2549. >A) Scheduler
  2550. >B) Speech part.
  2551. >
  2552. >The scheduler part is easy -- use Chronographer (shareware).  The rest
  2553. >someone who actually uses the Speech manager will hve to help with ...
  2554. >
  2555. >-roy
  2556.  
  2557.  
  2558.     I think part B should be easy as well.  Just record it (make sure the
  2559. Speech Manager is installed!).  A little editing and you're done...
  2560.  
  2561. ---------------------------------------------------------------------------
  2562. |   Motorola                                   rwvr90@email.sps.mot.com   |
  2563. |   OE110                                                                 |
  2564. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  2565. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  2566. ---------------------------------------------------------------------------
  2567. =========================================================================
  2568. Date:         Wed, 7 Sep 1994 17:54:04 -0600
  2569. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2570. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2571. From:         Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM>
  2572. Subject:      Open With
  2573.  
  2574. REGARDING                Open With
  2575. I'm trying to produce a drag-n-drop applet that opens a text file with a
  2576. specific application, regardless of the creator type it's graced with.
  2577.     It would be great if AppleScript had Frontier's launch.appWithDocument().
  2578. The following script is my effort to do this:
  2579.  
  2580.  
  2581. on open selectedFile
  2582.     tell application "Finder"
  2583.         display dialog selectedFile as string --Just so I can see!
  2584.         tell application "Finder Liaison 1.0"
  2585.             copy (Get Creator of File selectedFile) to originalCreator
  2586.         end tell
  2587.         Set Creator of file selectedFile To "quil"
  2588.         open selectedFile
  2589.         Set Creator of file selectedFile To originalCreator
  2590.     end tell
  2591. end open
  2592.  
  2593.  
  2594.     When I drag and drop, I get this:
  2595.             "Cannot get file <blah, blah, blah> of application
  2596.             Finder Liason 1.0.  Access not allowed."
  2597.  
  2598.     What am I doing wrong?  I've seen this error dialog before.  The offending
  2599. statement is "Get Creator of File selectedFile".
  2600.  
  2601. Thanks in advance for any councel and advice.
  2602.  
  2603. ---------------------------------------------------------------------------
  2604. |   Motorola                                   rwvr90@email.sps.mot.com   |
  2605. |   OE110                                                                 |
  2606. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  2607. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  2608. ---------------------------------------------------------------------------
  2609. =========================================================================
  2610. Date:         Thu, 8 Sep 1994 11:10:00 +1200
  2611. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2612. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2613. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  2614.               NZ" <LDO@WAIKATO.AC.NZ>
  2615. Subject:      Re: scriptable graphics conversion
  2616.  
  2617. Jon Pugh <jonpugh@NETCOM.COM> writes:
  2618.  
  2619. ><uninvited impersonal GIF flames>
  2620. >
  2621. >Please, do me a favor.  Never create another GIF file in your life.  Use
  2622. >JPEG instead.  You get a 24 bit file in the same space (or better
  2623. >compression if you are willing to sacrifice image details).
  2624. ...
  2625. >Down with GIF!
  2626.  
  2627. Hear, hear!
  2628.  
  2629. However, I should point out some real-world unpleasantness. I've been
  2630. occasionally helping a colleague get scanned images into our WWW server,
  2631. by taking TIFF files off a DOS-format disk into Adobe Photoshop, exporting
  2632. them in JPEG format, and then FTPing them onto the UNIX host. So far he's
  2633. had no success with these, whereas if I try converting to GIF and FTPing him
  2634. that instead, it works fine. This would seem to rule out any problem at the FTP
  2635. step (I'm using Anarchie).
  2636.  
  2637. Conclusion: some of the JPEG code that's around on the more deprived platforms
  2638. may not be the best...
  2639.  
  2640. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  2641. Info & Tech Services Division              fax: +64-7-838-4066
  2642. University of Waikato            electric mail: ldo@waikato.ac.nz
  2643. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  2644. =========================================================================
  2645. Date:         Wed, 7 Sep 1994 19:06:41 U
  2646. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2647. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2648. From:         Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
  2649. Subject:      Re: Help with a script
  2650.  
  2651.         Reply to:   RE>>Help with a script
  2652. >>Suggestion: Split it into two parts:
  2653. >>A) Scheduler
  2654. >>B) Speech part.
  2655. >>
  2656. >>The scheduler part is easy -- use Chronographer (shareware).  The rest
  2657. >>someone who actually uses the Speech manager will hve to help with ...
  2658. >>
  2659. >>-roy
  2660. >
  2661. >
  2662. >    I think part B should be easy as well.  Just record it (make sure the
  2663. >Speech Manager is installed!).  A little editing and you're done...
  2664.  
  2665.     Oops!  SimpleText isn't scriptable and the Scriptable Text Editor (what I
  2666. actually had in mind) -- included in the AppleScript developer's kit --
  2667. doesn't read text aloud.
  2668.  
  2669. Apologies--
  2670. Richard Petty
  2671.  
  2672. ---------------------------------------------------------------------------
  2673. |   Motorola                                   rwvr90@email.sps.mot.com   |
  2674. |   OE110                                                                 |
  2675. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  2676. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  2677. ---------------------------------------------------------------------------
  2678. =========================================================================
  2679. Date:         Thu, 8 Sep 1994 12:13:00 +1200
  2680. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2681. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2682. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  2683.               NZ" <LDO@WAIKATO.AC.NZ>
  2684. Subject:      Re: Open With
  2685.  
  2686. Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM> writes:
  2687.  
  2688. >I'm trying to produce a drag-n-drop applet that opens a text file with a
  2689. >specific application, regardless of the creator type it's graced with.
  2690.  
  2691.     tell application "specific application" to open file "text file"
  2692.  
  2693. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  2694. Info & Tech Services Division              fax: +64-7-838-4066
  2695. University of Waikato            electric mail: ldo@waikato.ac.nz
  2696. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  2697. =========================================================================
  2698. Date:         Wed, 7 Sep 1994 19:37:00 CDT
  2699. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2700. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2701. From:         "For every action there is an equal and opposite reaction."
  2702.               <yosus@MCS.COM>
  2703. Subject:      Re: my own question
  2704.  
  2705. RE: To: MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu
  2706. From: yosus@mcs.com (For every action there is an equal and opposite reaction.)
  2707. Subject: Help with a script
  2708.  
  2709.  
  2710.   Can somebody help me with a script? I am trying to write an applescript
  2711. that will........at a certain time on a certain date open a SimpleText
  2712. file, read it with the speech mgr. and then quit SimpleText.
  2713.  
  2714. tell application "SimpleText copy"
  2715.         open file "name of text file"
  2716.         activate
  2717.         Select Menu Item menu id 134 menu item id 5
  2718.         quit application "SimpleText copy"
  2719. end tell
  2720.  
  2721. This almost works for the second half of the script, except it starts to
  2722. speak the text with the speech mgr., but then the quit application command
  2723. kicks in before the speech can be completed. P.S. this is also using the
  2724. "menu events" scripting addition & extension.
  2725.     I really like the SimpleText program, the speech and record functions
  2726. make it a small, yet powerful,  fun text editor.
  2727.  
  2728. KingShit
  2729. =========================================================================
  2730. Date:         Wed, 7 Sep 1994 17:54:02 -0700
  2731. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2732. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2733. From:         Derrick Schneider <derrick@NETCOM.COM>
  2734. Subject:      Re: Recent History (or:learning apple script)
  2735. In-Reply-To:  <199409071910.MAA25153@netcom2.netcom.com>
  2736.  
  2737. On Wed, 7 Sep 1994, Steve Kalkwarf wrote:
  2738.  
  2739. > I was very unhappy with my purchase. The biggest problem was that lots of
  2740. > the sample scripts were just plain wrong. Some didn't syntax check, some
  2741. > didn't run properly when compiled. My margins are filled with notes
  2742. > correcting scripts, up until around chapter 8, when I gave up.
  2743.  
  2744. Hmmm. I do know that some of the later scripts had problems, but the
  2745. earlier ones should have been fine. Don't suppose you'd mind xeroxing
  2746. some of those and sending them to me?
  2747.  
  2748. BTW, attentive to those complaints, I tried very hard to check the
  2749. scripts in Tao 2. I know it doesn't help Tao 1 owners with the same
  2750. problem, but it's something.
  2751.  
  2752. Derrick
  2753. =========================================================================
  2754. Date:         Wed, 7 Sep 1994 17:56:56 -0700
  2755. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2756. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2757. From:         Derrick Schneider <derrick@NETCOM.COM>
  2758. Subject:      Re: Recent History (or:learning apple script)
  2759. In-Reply-To:  <199409072047.NAA04754@netcom11.netcom.com>
  2760.  
  2761. On Wed, 7 Sep 1994, John W. Baxter wrote:
  2762.  
  2763. > AppleScript was not only very late, it also appears to have been a moving
  2764. > target right up until after the release of 1.0 (and Tao, and Handbook)
  2765. > (witness 1.1 appearing right after 1.0 was frozen into System 7 Pro).
  2766.  
  2767. Tell me about it! I wasn't thrilled with having 1.1 come out four months
  2768. after the Tao book. Hopefully I'll have a bit of a break for the next
  2769. version!
  2770.  
  2771. Derrick
  2772. "Last time I ever write about an unreleased product!"
  2773. =========================================================================
  2774. Date:         Wed, 7 Sep 1994 19:18:07 PDT
  2775. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2776. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2777. From:         Joe Scripter <MikeL@EWORLD.COM>
  2778. Subject:      Send me AliasExpander
  2779.  
  2780. Send me AliasExpander,
  2781.  
  2782. Thanks,
  2783.  
  2784. Mike Lennon.
  2785. =========================================================================
  2786. Date:         Wed, 7 Sep 1994 18:56:11 -0700
  2787. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2788. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2789. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2790. Subject:      Re: Open With
  2791.  
  2792. >REGARDING                Open With
  2793. >I'm trying to produce a drag-n-drop applet that opens a text file with a
  2794. >specific application, regardless of the creator type it's graced with.
  2795. >    It would be great if AppleScript had Frontier's launch.appWithDocument().
  2796. >The following script is my effort to do this:
  2797.  
  2798. I recommend that you forget about the old Finder and the various aids which
  2799. worked around its scripting limitations (caused by its being frozen
  2800. somewhat before System 7.0 shipped in May of 1991, well before the rest of
  2801. Apple events and AppleScript), and go with the Scriptable Finder.
  2802.  
  2803. There, you can use open in this very sensible way (copied from the Dictionary)
  2804.  
  2805. open: Open the specified object(s)
  2806.     open  reference  -- list of objects to open
  2807.         [using  reference]  -- the application file to open the object with
  2808.  
  2809.  
  2810. Just name the desired application in the using clause.
  2811.  
  2812. Scriptable Finder comes with System 7.5...it's also available for $25 from
  2813. APDA.  Cheaper than working around the sorts of things you're trying to do.
  2814.    --John
  2815.  
  2816. --
  2817. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  2818. =========================================================================
  2819. Date:         Wed, 7 Sep 1994 18:56:24 -0700
  2820. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2821. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2822. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2823. Subject:      Re: Cutting & pasting w Apple E
  2824.  
  2825. >                       Subject:                               Time:3:14 PM
  2826. >  OFFICE MEMO          Cutting & pasting w Apple Events       Date:9/7/94
  2827. >I have an Excel spreadsheet which I use to record information for later
  2828. >indexing. I've developed a nice little formatting template (not to be confused
  2829. >with a document template) which I apply to consecutive ranges of cells to make
  2830. >the data more eyeball-friendly.
  2831. >I've played around with automating the process of applying this formatting via
  2832. >Apple Events. Using Frontier and the Object Model I can do various some pretty
  2833. >cool things. What I can't figure out is how to emulate, directly or indirectly,
  2834. >the effect of copying the formatting of my template and pasting it into the
  2835. >next group of cells.
  2836. >Has anybody had much experience automating Excel in a similiar way?
  2837.  
  2838. I haven't had much luck (in either UserTalk or AppleScript) trying to apply
  2839. formats to Excel cells or cell ranges.  I think that's because I'm not
  2840. smart enough to figure out how to do it (I *think* the capability is
  2841. somewhere there in Excel).  Sorry.
  2842.  
  2843.    --John
  2844.  
  2845. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  2846.   UserLand Software support
  2847. =========================================================================
  2848. Date:         Wed, 7 Sep 1994 18:56:19 -0700
  2849. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2850. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2851. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  2852. Subject:      Re: Launching Excel from Fronti
  2853.  
  2854. >                       Subject:                               Time:1:27 PM
  2855. >  OFFICE MEMO          Launching Excel from Frontier          Date:9/7/94
  2856. >I'm trying to launch Excel 4 with a specific spreadsheet from Frontier 3.0.3.
  2857. >I've tried the verb, app.startWithDocument, both in a script and in the
  2858. >QuickScript window. The latter method seems fairly reliable, i.e. Excel
  2859. >launches with the document I want. Using the verb in a script in the form:
  2860. >ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
  2861. >...does *not* work. Excel starts up but hangs before it gets to drawing its
  2862. >toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and return
  2863. >control to me. Removing the 'ok' variable yields a small measure of success;
  2864. >Excel may comeup once or twice before it locks up the whole system. In both
  2865. >cases, the statements are being executed within a try statement.
  2866. >My copy of Excel seems healthy in all other ways; I use it everyday without
  2867. >incident. Likewise Frontier. I haven't tried too many alternatives, largely
  2868. >because app.startWithDocument so precisely fits my needs. But I am totally open
  2869. >to other methods provided they accomplish the same goal.
  2870.  
  2871. Either this:
  2872.    launch.appWithDocument ("Vashon:Excel:Microsoft Excel",
  2873. "Vashon:Excel:Weight Excel")
  2874.  
  2875. or this:
  2876.  
  2877.    app.startWithDocument ("Excel", "Vashon:Excel:Weight Excel")
  2878.  
  2879. works find for me, PROVIDED Excel is not already running.  If Excel is
  2880. already running, just use
  2881.  
  2882. with objectModel, Excel
  2883.     setEventInteraction (false)
  2884.     open ("Vashon:Excel:Weight Excel")
  2885.  
  2886. (you may or may not want to follow that with setEventInteraction (true)
  2887. [that setting is per script (and the scripts that script calls), with a
  2888. default of true]).
  2889.  
  2890. As usual, you can tell which form to use by using
  2891. sys.appIsRunning ("MicroSoft Excel")
  2892.  
  2893. or
  2894. sys.appIsRunning (Excel.id)
  2895.  
  2896. either of which is true if Excel is running.
  2897.    --John
  2898.  
  2899. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  2900.   UserLand Software support
  2901. =========================================================================
  2902. Date:         Wed, 7 Sep 1994 22:27:00 -0500
  2903. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2904. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2905. From:         "Scott S. Lawton" <ssl@PREFAB.COM>
  2906. Subject:      Re: Fax Merging with Word/FaxSTF/Touchbase Pro
  2907.  
  2908. >And of course Word 5.1a is not AppleScript aware as far as I can see...,
  2909. >neither is Touchbase Pro 3.0i (although 4.0 is... but no-one in Australia
  2910. >wants to sell it to me!).
  2911.  
  2912. Our Player utility adds verbs to AppleScript for directly controlling the
  2913. user interface: choose from a menu or pop-up, select a radio button, type
  2914. text, etc.  I used it to drive FAXstf from FileMaker (from a FAX
  2915. correspondance database) until I gave up on 'stf and switched to software
  2916. that came with my FAX box.
  2917.  
  2918. $95 + shipping, 60-day Money Back Guarantee.
  2919.  
  2920. A press release, data sheet & comparison to QuicKeys & Tempo should be
  2921. posted on gaea shortly.  I'd be happy to e-mail one or more of these docs
  2922. in the meantime.
  2923.  
  2924. cheers,
  2925.  
  2926. -- SSL, PreFab Software
  2927. =========================================================================
  2928. Date:         Wed, 7 Sep 1994 20:00:19 -0800
  2929. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2930. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2931. From:         Kirk Stork <kastork@NPS.NAVY.MIL>
  2932. Subject:      Re: Help with a script
  2933.  
  2934. >        Reply to:   RE>>Help with a script
  2935. >>>Suggestion: Split it into two parts:
  2936. >>>A) Scheduler
  2937. >>>B) Speech part.
  2938. >>>
  2939. >>>The scheduler part is easy -- use Chronographer (shareware).  The rest
  2940. >>>someone who actually uses the Speech manager will hve to help with ...
  2941. >>>
  2942. >>>-roy
  2943. >>
  2944. >>
  2945. >>    I think part B should be easy as well.  Just record it (make sure the
  2946. >>Speech Manager is installed!).  A little editing and you're done...
  2947. >
  2948. >    Oops!  SimpleText isn't scriptable and the Scriptable Text Editor (what I
  2949. >actually had in mind) -- included in the AppleScript developer's kit --
  2950. >doesn't read text aloud.
  2951. >
  2952. How about Saint Edit?  Been a while since I used it, but it does read text.  Don
  2953. 't know if its scriptable and recordable though.
  2954. =========================================================================
  2955. Date:         Wed, 7 Sep 1994 20:00:31 -0800
  2956. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2957. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2958. From:         Kirk Stork <kastork@NPS.NAVY.MIL>
  2959. Subject:      Re: scriptable graphics conversion
  2960.  
  2961. >Jon Pugh <jonpugh@NETCOM.COM> writes:
  2962. >
  2963. >><uninvited impersonal GIF flames>
  2964. >>
  2965. >>Please, do me a favor.  Never create another GIF file in your life.  Use
  2966. >>JPEG instead.  You get a 24 bit file in the same space (or better
  2967. >>compression if you are willing to sacrifice image details).
  2968. >...
  2969. >>Down with GIF!
  2970. >
  2971. >Hear, hear!
  2972. >
  2973. >However, I should point out some real-world unpleasantness. I've been
  2974. >occasionally helping a colleague get scanned images into our WWW server,
  2975. >by taking TIFF files off a DOS-format disk into Adobe Photoshop, exporting
  2976. >them in JPEG format, and then FTPing them onto the UNIX host. So far he's
  2977. >had no success with these, whereas if I try converting to GIF and FTPing him
  2978. >that instead, it works fine. This would seem to rule out any problem at the FTP
  2979. >step (I'm using Anarchie).
  2980. >
  2981. >Conclusion: some of the JPEG code that's around on the more deprived platforms
  2982. >may not be the best...
  2983. >
  2984.  
  2985. Only one thing.  Does your JPEG conversion use Quicktime?  If so, try turning of
  2986. f Quicktime compression when you convert.  This may solve the UNIX box's problem
  2987.  with the JPEG.  Other than that I don't know, the favored format at my place se
  2988. ems to be .rgb - Huge files.
  2989.  
  2990. --just another guy in favor of eliminating GIF forever--
  2991. =========================================================================
  2992. Date:         Thu, 8 Sep 1994 00:01:03 -0500
  2993. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2994. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  2995. From:         "Sean Elfstrom (457235635)" <selfstro@CS.TRINITY.EDU>
  2996. Subject:      Re: scriptable graphics conversion
  2997. In-Reply-To:  <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
  2998.               NZ" at Sep 8, 94 11:10:00 am
  2999.  
  3000. > Hear, hear!
  3001. >
  3002. > However, I should point out some real-world unpleasantness. I've been
  3003. > occasionally helping a colleague get scanned images into our WWW server,
  3004. > by taking TIFF files off a DOS-format disk into Adobe Photoshop, exporting
  3005. > them in JPEG format, and then FTPing them onto the UNIX host. So far he's
  3006. > had no success with these, whereas if I try converting to GIF and FTPing him
  3007. > that instead, it works fine. This would seem to rule out any problem at the FT
  3008. P
  3009. > step (I'm using Anarchie).
  3010. >
  3011. > Conclusion: some of the JPEG code that's around on the more deprived platforms
  3012. > may not be the best...
  3013. >
  3014.  
  3015. Actually your JPEG code is probably fine. While http servers may support
  3016. inline JPEG images, I do not know of any *client* that does. A professor
  3017. here was having the same problem, and things cleared up when he went to
  3018. GIFs. I believe the only supported formats are GIF and Xbim (or whatever
  3019. that X bitmap format is called :)   ).
  3020.  
  3021. --
  3022. ---------------------------------------------------------------------
  3023. Sean Elfstrom                  | Trinity University
  3024. 10819 Auldine                  | selfstro@cs.trinity.edu
  3025. San Antonio, TX 78230          | http://www.cs.trinity.edu/~selfstro/
  3026. (210) 341-4624                 | PGP Key available via finger
  3027. =========================================================================
  3028. Date:         Wed, 7 Sep 1994 23:34:35 -0700
  3029. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3030. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3031. From:         David Ray <daver@NETCOM.COM>
  3032. Subject:      Re: my own question
  3033.  
  3034. >tell application "SimpleText copy"
  3035. >        open file "name of text file"
  3036. >        activate
  3037. >        Select Menu Item menu id 134 menu item id 5
  3038. >        quit application "SimpleText copy"
  3039. >end tell
  3040. >
  3041. >This almost works for the second half of the script, except it starts to
  3042. >speak the text with the speech mgr., but then the quit application command
  3043. >kicks in before the speech can be completed.
  3044.  
  3045. You could delay the "quit" command a number of ways....but the best way to
  3046. do it would be to use the "idle..end idle" handler. Other ways of delaying
  3047. will eat up processor power during the delay.
  3048.  
  3049. global i
  3050. set i to 1
  3051. on idle
  3052.    if i = 1 then
  3053.       tell application "SimpleText copy"
  3054.          open file "name of text file"
  3055.          activate
  3056.          Select Menu Item menu id 134 menu item id 5
  3057.       end tell
  3058.    else if i = 2 then
  3059.       tell application "SimpleText copy" to quit
  3060.       quit
  3061.    end if
  3062.    set i to i + 1
  3063.    return 600         -- this is the delay in seconds before it sends the
  3064.                          quit command
  3065. end idle
  3066.  
  3067.  
  3068. Note that this script won't run unless you save it as an "stay open"
  3069. application, and run it from the Finder.
  3070.  
  3071. -Dave
  3072.  
  3073.  -----------------------------------------------------------------------
  3074.  David Ray                Dream Designs          Music Composition
  3075.  daver@netcom.com         PO Box 5631            Interactive Multimedia
  3076.  510-527-9010             Berkeley CA 94705      Virtual Worlds
  3077. =========================================================================
  3078. Date:         Thu, 8 Sep 1994 10:19:50 GMT
  3079. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3080. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3081. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  3082. Organization: commstalk, & Full Moon Software
  3083. Subject:      AS 1.1 - bug or feature?
  3084.  
  3085. Hi folks,
  3086.  
  3087. I don't know if this has been discussed before; apologies if that's so.
  3088.  
  3089. We've noticed that, if AppleScript 1.1 is installed, but the scripting
  3090. additions folder is missing (or incorrectly named), it transparently
  3091. creates a new, empty, scripting additions folder (in turn containing a
  3092. new, empty, dialects folder).
  3093.  
  3094. Thereafter, AS 1.1 will be unable to extract source code from scripts,
  3095. and will not allow dictionaries to be opened.
  3096.  
  3097. This could be useful in that a very simple script (one that uses no
  3098. scripting additions) should run as long as at least the AS 1.1
  3099. extension is loaded, whether or not scripting additions and dialects
  3100. are present. It might be a bug, though. Something to watch out for
  3101. when troubleshooting.
  3102.  
  3103.  
  3104. best regards, Paul
  3105.  
  3106. +------------------------------------------------------------------+
  3107. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  3108. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  3109. | & Full Moon Software, Inc               || US ph: 408 253 7199
  3110. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  3111. =========================================================================
  3112. Date:         Thu, 8 Sep 1994 20:33:37 +1000
  3113. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3114. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3115. From:         David Parry <dparry@OZEMAIL.COM.AU>
  3116. Subject:      Re: my own question
  3117.  
  3118. >that will........at a certain time on a certain date open a SimpleText
  3119.  
  3120. I'm really keen to see how you get the date & time launching happening.
  3121.  
  3122. Is the only way to have an applet in the startup items folder constantly
  3123. checking the time & date or what?
  3124.  
  3125. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3126. > dparry@ozemail.com.au                      Voice:  + 61 7 356 7645 <
  3127. > The System                                 Fax:    + 61 7 356 7790 <
  3128. > 46 Lansdowne Street                        DJP Mobile: 015 150 939 <
  3129. > Wilston QLD 4051                           MJE Mobile: 018 732 521 <
  3130. > Australia                                                          <
  3131. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3132. > You could get run over by a bus tomorrow... go on... have a fag!   <
  3133. >                                                                    <
  3134. >       \@\                                                          <
  3135. >        /@@/                                                        <
  3136. >       \@@@\                                                        <
  3137. >        \@@@/                                                       <
  3138. >         \@\                                                        <
  3139. >          |#|00000000000)))                                         <
  3140. >                                                                    <
  3141. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3142. =========================================================================
  3143. Date:         Thu, 8 Sep 1994 05:35:47 -0500
  3144. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3145. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3146. From:         Perry Smith <pedz@BGA.COM>
  3147. Subject:      Re: READ CAREFULLY: Newsgroup Poll
  3148.  
  3149. I just joined this group and so I think I have a little insight that
  3150. others might not.  It took me a while, like a month or so, to discover this
  3151. mailig list and then it was in an offhand reply.  So I feel I "lucked"
  3152. out by finding this group.  I'm 100% positive that there are probably
  3153. two or three other mailing lists for the same purpose (thats my gut feel).
  3154.  
  3155. I think mailing lists fail in a number of dimensions.  If you have 16
  3156. messages per day, then I think that statistic alone justifies a newsgroup.
  3157. I have often been stuck inside a large corporation that did not have
  3158. news but I could get mail back and forth.  So I would keep a mailing list
  3159. that echoed messages back and forth.
  3160.  
  3161. I would also post at least once a month that this mailing list exists
  3162. in news until a news group is created.
  3163.  
  3164. pedz
  3165. =========================================================================
  3166. Date:         Thu, 8 Sep 1994 08:04:07 -0500
  3167. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3168. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3169. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  3170. Subject:      My first BBEdit/AppleScript!
  3171.  
  3172. =46riends
  3173.  
  3174. I am re-sending this message from last week. My questions are still relevant=
  3175. :
  3176.  
  3177. --------(included message)----------
  3178.  
  3179.    I've been complaining for a few days about scripts for BBEdit. Well, now
  3180. I've done something about it: here's my first successful AppleScript. It
  3181. examines a text file line-by-line, then copies each line to a second
  3182. window. Bear with me -- as simple as it is, it's taken me three days to get
  3183. it to work.
  3184.  
  3185.    My goodness is it slow! Is there any way to speed it up, perhaps by
  3186. bypassing the Clipboard? Thanks for any pointers.
  3187.  
  3188. tell application "BBEdit 3.0"
  3189.         activate
  3190.         open alias "Mustela furo:Polya:Test 002.bbe"
  3191.         open alias "Mustela furo:Polya:Test 001.bbe"
  3192.         set lineCount to Number of Lines in window 1
  3193.         --the only classes are Window and Application, no
  3194.         --support for Word, Text item, or Character
  3195.         set newLine to ""
  3196.         repeat with i from 1 to lineCount
  3197.                 Go To Line i
  3198.                 --I originally had "Go to line i of Window 1"
  3199.                 --a definite "no-no"; thanks to Rich Siegel of
  3200.                 --BBEdit for this pointer.
  3201.                 Select Current Line
  3202.                 --the only things you can select are Current Line,
  3203.                 --Paragraph, and Everything. Any other selection must
  3204.                 --be through the Find command.
  3205.                 Copy
  3206.                 set newLine to clipboard
  3207.                 --is there a better way to do this, rather than
  3208.                 --go through the clipboard?
  3209.                 Exchange Windows
  3210.                 if newLine =82 "" then
  3211.                         Insert Text (newLine as text)
  3212.                 else
  3213.                         Insert Text return
  3214.                 end if
  3215.                 Exchange Windows
  3216.         end repeat
  3217. end tell
  3218.  
  3219.    Clint
  3220. =========================================================================
  3221. Date:         Thu, 8 Sep 1994 06:36:25 PDT
  3222. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3223. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3224. From:         "Andrew T. Johnston" <atjohnst@APPLE.COM>
  3225. Subject:      RE>>Cutting & pasting w Apple Events
  3226.  
  3227. Hi,
  3228.  
  3229. >>What I can't figure out is how to emulate, directly or indirectly,
  3230. >>the effect of copying the formatting of my template and pasting it into the
  3231. >>next group of cells.
  3232. >>Has anybody had much experience automating Excel in a similiar way?
  3233.  
  3234. >I haven't had much luck (in either UserTalk or AppleScript) trying to apply
  3235. >formats to Excel cells or cell ranges.
  3236.  
  3237. I have no experience with Frontier, but I do have a script that runs daily
  3238. to produce a decent-looking report in Excel. The script itself is huge, but
  3239. I've included some bits that might be relevant below.
  3240.  
  3241. My understanding is that there is some process for using an app's user
  3242. terminology resource to make the right commands, etc. available to Frontier.
  3243. Hopefully you'll be able to do that in this case.
  3244.  
  3245. These script bits require Excel 4.0 to be useful.
  3246.  
  3247. tell application "Excel 4.0"
  3248.   --
  3249.   -- range references are strings in the form of "Ry1Cx1:Ry2Cx2"
  3250.   -- where x1,x2 are column numbers, and y1,y2 are row numbers
  3251.   --
  3252.   set rangeString to ("R" & rowOffset & "C1:R" & (rowCount + rowOffset) & "C6")
  3253.   set bottom border of Range rangeString to hairline
  3254.   set bold of Range rangeString to true
  3255.   set alignment of Range rangeString to center
  3256.   set the number format of Range rangeString to "0.00" -- number format string
  3257. end tell
  3258.  
  3259.  
  3260. Hopefully helpful,
  3261.   Andrew
  3262.  
  3263. ------------------
  3264. Andrew T. Johnston
  3265. Apple Canada, Inc.
  3266. atjohnst@apple.com
  3267. =========================================================================
  3268. Date:         Thu, 8 Sep 1994 09:19:03 -0500
  3269. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3270. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3271. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3272. Subject:      Re: Fax Merging with Word/FaxSTF/Touchbase Pro
  3273. In-Reply-To:  Your message of "Wed, 07 Sep 94 22:27:00 CDT"
  3274.  
  3275. Scott Lawton says....
  3276.  
  3277. >A press release, data sheet & comparison to QuicKeys & Tempo should be
  3278. >posted on gaea shortly.  I'd be happy to e-mail one or more of these docs
  3279. >in the meantime.
  3280.  
  3281. They are up. Check out
  3282.  
  3283. ftp://gaea.kgs.ukans.edu/applescript/PRs/PlayerInfo.sit.hqx
  3284.  
  3285. Cheers.
  3286.  
  3287. pf
  3288. =========================================================================
  3289. Date:         Thu, 8 Sep 1994 09:21:32 -0500
  3290. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3291. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3292. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3293. Subject:      POLLS CLOSE TOMORROW
  3294.  
  3295. Everyone,
  3296.  
  3297. Just a gentle reminder that the newsgroup creation polls close tomorrow. So
  3298. get those ballots in. I only have 160 ballots and there are now 812
  3299. subscribers; our percentages haven't improved much.
  3300.  
  3301. pf
  3302.  
  3303.  
  3304. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3305. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  3306. =========================================================================
  3307. Date:         Thu, 8 Sep 1994 09:54:24 -0500
  3308. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3309. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3310. From:         "Sean Elfstrom (457235635)" <selfstro@CS.TRINITY.EDU>
  3311. Subject:      Re: My first BBEdit/AppleScript!
  3312. In-Reply-To:  <no.id> from "Clinton MacDonald" at Sep 8, 94 08:04:07 am
  3313.  
  3314. [text deleted...]
  3315. >
  3316. >    My goodness is it slow! Is there any way to speed it up, perhaps by
  3317. > bypassing the Clipboard? Thanks for any pointers.
  3318. >
  3319. > tell application "BBEdit 3.0"
  3320. >         activate
  3321. >         open alias "Mustela furo:Polya:Test 002.bbe"
  3322. >         open alias "Mustela furo:Polya:Test 001.bbe"
  3323. >         set lineCount to Number of Lines in window 1
  3324. >         --the only classes are Window and Application, no
  3325. >         --support for Word, Text item, or Character
  3326. >         set newLine to ""
  3327. >         repeat with i from 1 to lineCount
  3328. >                 Go To Line i
  3329. >                 --I originally had "Go to line i of Window 1"
  3330. >                 --a definite "no-no"; thanks to Rich Siegel of
  3331. >                 --BBEdit for this pointer.
  3332. >                 Select Current Line
  3333. >                 --the only things you can select are Current Line,
  3334. >                 --Paragraph, and Everything. Any other selection must
  3335. >                 --be through the Find command.
  3336. >                 Copy
  3337. >                 set newLine to clipboard
  3338. >                 --is there a better way to do this, rather than
  3339. >                 --go through the clipboard?
  3340. >                 Exchange Windows
  3341. >                 if newLine =82 "" then
  3342. >                         Insert Text (newLine as text)
  3343. >                 else
  3344. >                         Insert Text return
  3345. >                 end if
  3346. >                 Exchange Windows
  3347. >         end repeat
  3348. > end tell
  3349.  
  3350. You should be able to set newLine to selection directly, without using
  3351. the clipboard.
  3352.  
  3353. --
  3354. ---------------------------------------------------------------------
  3355. Sean Elfstrom                  | Trinity University
  3356. 10819 Auldine                  | selfstro@cs.trinity.edu
  3357. San Antonio, TX 78230          | http://www.cs.trinity.edu/~selfstro/
  3358. (210) 341-4624                 | PGP Key available via finger
  3359. =========================================================================
  3360. Date:         Thu, 8 Sep 1994 10:07:33 -0500
  3361. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3362. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3363. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3364. Subject:      Re: my own question
  3365. In-Reply-To:  Your message of "Thu, 08 Sep 94 20:33:37 +0900"
  3366.  
  3367. >>that will........at a certain time on a certain date open a SimpleText
  3368. >
  3369. >I'm really keen to see how you get the date & time launching happening.
  3370. >
  3371. >Is the only way to have an applet in the startup items folder constantly
  3372. >checking the time & date or what?
  3373.  
  3374. Check out the Scheduler demo on gaea
  3375.  
  3376. ftp://gaea.kgs.ukans.edu/applescript/demos/schedulerdemo.hqx
  3377.  
  3378. You might also want to looking into using QuicKeys (if you own it), Chron, or
  3379. Chronograph. I can't find the URL for Chron at the moment, and I don't think
  3380. Chronograph is on the net. I'll pull it down from AOL tonight and put it up on
  3381. gaea.
  3382.  
  3383. I'm sure others can add to this list or provide the missing URLs.
  3384.  
  3385. pf
  3386.  
  3387.  
  3388. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3389. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  3390. =========================================================================
  3391. Date:         Thu, 8 Sep 1994 14:22:02 GMT
  3392. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3393. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3394. From:         David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
  3395. Organization: Sage Design
  3396. Subject:      Re: Launching Excel from Fronti
  3397.  
  3398. I have also experienced strange things with Excel.
  3399.  
  3400. The way I launch it is with
  3401.   launch.anything(docname)
  3402.  
  3403. This works great provided docname is an excel document. If you don't have a
  3404. document you want to open, just create one, change the type and creator,
  3405. launch it, and then delete it (once you have closed it from Excel).
  3406.  
  3407.  
  3408. +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
  3409. |       Everything is very very deeply      \
  3410. |    I  N  T  E  R  T  W  I  N  G  L  E  D   \
  3411. | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
  3412. +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  3413. =========================================================================
  3414. Date:         Thu, 8 Sep 1994 12:15:26 EDT
  3415. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3416. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3417. From:         Mike Kost <bvei87@HOBBES.BOEING.COM>
  3418. Subject:      who what where how
  3419.  
  3420. Greetings
  3421.  
  3422. I have a couple question about some of the traffic I've been
  3423. seening here. If this is too redundant point me to info please....
  3424.  
  3425. Is there any way to use dialogs or other user interface stuff
  3426. with scripts, such as progress bars (other than the Tao one),
  3427. change cursor, etc?  I've seen references to userfirst(sp?).
  3428.  
  3429. What is osaxen, endora?
  3430.  
  3431. thanks
  3432.  
  3433. Mike
  3434.  
  3435. --
  3436. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3437.  Michael R. Kost
  3438.  kost@netaxs.com
  3439. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3440.  
  3441.         Help, I'm a rock!!!
  3442.                  Frank Zappa
  3443. =========================================================================
  3444. Date:         Thu, 8 Sep 1994 11:54:16 -0500
  3445. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3446. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3447. From:         Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
  3448. Subject:      Scriptable Finder question
  3449.  
  3450. Newbie question: how do you tell the scriptable finder to launch
  3451. an application?  A one-liner would be best for my needs.
  3452.  
  3453.  
  3454. thanks,
  3455.  
  3456. Todd Main
  3457. Motorola Dynamic Memory Products
  3458. tmain@fsrampo.sps.mot.com
  3459. (512) 933-6143
  3460. =========================================================================
  3461. Date:         Thu, 8 Sep 1994 10:20:00 -0700
  3462. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3463. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3464. From:         Dennis Birch <dennisb@HALCYON.COM>
  3465. Subject:      AS apps controlling AS apps
  3466.  
  3467. I sent this message a few days ago, right before our system administrator
  3468. screwed up my e-mail account. So I apologize about the repitition, but I'd
  3469. really appreciate an answer, and I haven't seen one so far.
  3470.  
  3471. ------------------^^^^^^^^^^^^^^^^^------------------^^^^^^^^^^^^^^^^^
  3472.  
  3473. This is probably a dumb question, but I still consider myself a novice at
  3474. AppleScripting, so I'm allowed, right?
  3475.  
  3476. Can I have a master AS application send data to another AS application and
  3477. GET data back from it? I haven't been able to figure out how to do it. That
  3478. is, I think I'm successfully the second AS app the data, but I'm apparently
  3479. not getting back any data.
  3480.  
  3481. Thanks for any help on this.
  3482.  
  3483. Dennis Birch
  3484. =========================================================================
  3485. Date:         Thu, 8 Sep 1994 18:09:15 GMT
  3486. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3487. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3488. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  3489. Organization: commstalk, & Full Moon Software
  3490. Subject:      ScriptWizard 1.0.1x41 updater
  3491.  
  3492. Hi folks,
  3493.  
  3494. We posted an updater for ScriptWizard, taking version 1.0 to version
  3495. 1.0.1x41, on Gaea and on AppleLink. This version fixes a handful of
  3496. bugs in addition to those fixed in version 1.0.1fc1 (uploaded a month
  3497. ago). The most important differences are a bunch of fixes to memory
  3498. handling in the Dictionary windows, eliminating serious memory leaks.
  3499. Also, the "cursor wars" in the Dictionary window are fixed at last.
  3500.  
  3501. It seems there may be a corruption in the updater file that was uploaded
  3502. to gaea; we are investigating. We'll announce on MACSCRPT as soon as
  3503. it is safe to download it from gaea. For the time being, try if you wish
  3504. but we have had reports of FTP/binhex errors while downloading the file.
  3505.  
  3506. (If you are in a desperate hurry to get the update, you can find it on
  3507. AppleLink.)
  3508.  
  3509.  
  3510. best regards, Paul
  3511.  
  3512. +------------------------------------------------------------------+
  3513. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  3514. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  3515. | & Full Moon Software, Inc               || US ph: 408 253 7199
  3516. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  3517. =========================================================================
  3518. Date:         Thu, 8 Sep 1994 13:28:53 -0500
  3519. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3520. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3521. From:         Steve Alex <steve_alex@AIDT.EDU>
  3522. Subject:      Re> AS apps controlling AS apps
  3523.  
  3524. >Can I have a master AS application send data to another AS application and
  3525. >GET data back from it? I haven't been able to figure out how to do it. That
  3526. >is, I think I'm successfully the second AS app the data, but I'm apparently
  3527. >not getting back any data.
  3528.  
  3529. Not quite sure what your asking for. If your talking about two AS "script"
  3530. applications, then its just passing data to a handler and returning data. The
  3531. slave application must be save as an AS application
  3532.  
  3533.  
  3534. -- Master Application
  3535.  
  3536. -- get data1 somehow
  3537.  
  3538. tell application "slave"
  3539.         set theResult to doSomething(data1)
  3540. end tell
  3541.  
  3542.  
  3543.  
  3544.  
  3545. -- Slave Application
  3546.  
  3547.  
  3548. on doSomething(someData)
  3549.         -- do something with someData and create returnData
  3550.         ---
  3551.         return returnData
  3552. end
  3553.  
  3554. steve
  3555. =========================================================================
  3556. Date:         Thu, 8 Sep 1994 14:31:04 EST
  3557. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3558. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3559. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  3560. Subject:      Re: Open text file and read
  3561.  
  3562. Long live the King...
  3563.  
  3564. In regard to your question of opening a SimpleText file and reading it with
  3565. Speech Manager...
  3566.  
  3567. If the file in question is actually a SimpleText file (ie. type = "TEXT" and
  3568. creator = "ttxt") and you're not concerned with the 32K limitation, you may want
  3569. to use the Scriptable Text Editor to open the text file. Though the file will be
  3570. opened as a scriptable text editor version, you'll have more scriptable control
  3571. over the file and the text editor. You should also look into the scripting
  3572. addition from Mark Alldritt called "Speech" which can be found in the Script
  3573. Tools v1.3 Library. I've used this addition many times to read aloud items such
  3574. as mail messages, contents of dialog messages I write in scripts, and values
  3575. contained inside records of a FMPro database.
  3576.  
  3577. In regards of your script's posting:
  3578.  
  3579. >tell application "SimpleText copy"
  3580. >        open file "name of text file"
  3581. >        activate
  3582. >        Select Menu Item menu id 134 menu item id 5
  3583. >        quit application "SimpleText copy"
  3584. >end tell
  3585.  
  3586. try something like this script below...
  3587.  
  3588. (Note: this needs the Scriptable Text Editor, the "Speech" scripting addition
  3589. from Mark Alldritt, and a file with type and creator as that of a SimpleText
  3590. file (or something readable by Scriptable Text Editor)).
  3591.  
  3592. tell application "Scriptable Text Editor"
  3593.     launch
  3594.     open file "name of text file"
  3595.     speak contents of window 1
  3596.     quit application saving no
  3597. end tell
  3598.  
  3599. I believe you opened the file in the original script to allow yourself a chance
  3600. to read along with the contents of the file. However, with the "Speech"
  3601. scripting addition combined with the "Read/Write Commands" scripting addition
  3602. which came with the AppleScript runtime package, you can read a file's contents
  3603. directly off of the disk without dumping the contents into any window.
  3604.  
  3605. I'll try to help out further if you need. Can just post the ? directly to the
  3606. mailing list or contact me via e-mail.
  3607.  
  3608. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  3609. AOL:        kimsont@aol.com
  3610. eWorld:     kimsontran@eworld.com
  3611. =========================================================================
  3612. Date:         Thu, 8 Sep 1994 11:32:00 PDT
  3613. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3614. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3615. From:         Dave Wise <Dave_Wise@COLOS.PIXAR.COM>
  3616. Subject:      End of File Error
  3617.  
  3618. REGARDING                End of File Error
  3619. Has anyone ever gotten an end of file error? I keep getting one when I try
  3620. to use the run script or read file command.
  3621. =========================================================================
  3622. Date:         Thu, 8 Sep 1994 13:28:01 -0500
  3623. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3624. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3625. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3626. Subject:      Re: AS apps controlling AS apps
  3627. In-Reply-To:  Your message of "Thu, 08 Sep 94 10:20:00 PDT"
  3628.  
  3629. Everyone,
  3630.  
  3631. >I sent this message a few days ago, right before our system administrator
  3632. >screwed up my e-mail account. So I apologize about the repitition, but I'd
  3633. >really appreciate an answer, and I haven't seen one so far.
  3634.  
  3635. Just to point out something else for those times that you have email problems,
  3636. you can always retrieve the digests from gaea or get them from the listserv.
  3637.  
  3638. If you send the message, INFO REFCARD to the listserv@dartmouth.edu address,
  3639. you'll find out that you can get a list of archived files. The digests are
  3640. updated daily (hourly?) and can be obtained with
  3641.  
  3642. get macscript LOG9408
  3643.  
  3644. I try to remember to pull back one of these on a weekly basis during the month
  3645. and place it in the /applescript/docs/digests/ directory with a title like
  3646. Aug94.todate. You will also find the digests going back to February (when the
  3647. list was moved to Dartmouth) in that directory.
  3648.  
  3649. Have fun.
  3650.  
  3651. pf
  3652. =========================================================================
  3653. Date:         Thu, 8 Sep 1994 14:41:58 -0400
  3654. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3655. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3656. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  3657. Subject:      Re: Scriptable Finder question
  3658. In-Reply-To:  <no.id> from "Todd Main" at Sep 8, 94 11:54:16 am
  3659.  
  3660. --Todd Main wrote:
  3661. >
  3662. >Newbie question: how do you tell the scriptable finder to launch
  3663. >an application?  A one-liner would be best for my needs.
  3664.  
  3665.     Why do you want to use the Scriptable Finder to do this? All you
  3666. need to do is type: tell application "app name" to activate.
  3667.     This works from AppleScript, and will launch any application you
  3668. have on a mounted volume.
  3669.  
  3670. -Hades
  3671. =========================================================================
  3672. Date:         Thu, 8 Sep 1994 14:56:53 -0400
  3673. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3674. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3675. From:         Luis Muench <muench@SOLIX.FIU.EDU>
  3676. Subject:      A counting program
  3677.  
  3678. Hello all:
  3679.  
  3680.         I was wondering if there is such a program that will count or
  3681. tally the total number of keypresses and mouse clicks. I am researching a
  3682. study that would either correlate or dispell RSI (repetitive stress
  3683. injuries, a.k.a Carpal Tunnel or Tendinitis) with the amount of work one
  3684. does per hour and/or per day. It would be a tool in diagnosing people at
  3685. risk, etc.
  3686.  
  3687.         If you know of such a program or are interested in developing
  3688. such a diagnostic and research tool, please contact me directly.
  3689.  
  3690. TIA
  3691.  
  3692. -Luis
  3693. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  3694. ::      :::     "My Karma Ran Over My Dogma"
  3695. ::  :: ::       muench@fiu.edu
  3696.  : ;:::::       Luis Muench - graphic artist
  3697.     :  :        FloridaInternationalUniversity
  3698. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  3699. =========================================================================
  3700. Date:         Thu, 8 Sep 1994 12:17:08 -0800
  3701. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3702. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3703. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  3704. Subject:      Re: Scriptable Finder question
  3705.  
  3706. > Newbie question: how do you tell the scriptable finder to launch
  3707. > an application?  A one-liner would be best for my needs.
  3708.  
  3709. tell application "Finder"
  3710.         open "Implements:Utility Folders:Microsoft Excel:Microsoft Excel"
  3711. end tell
  3712.  
  3713. or something like that.  You need to use a reference for the 'open' command
  3714.  
  3715. -roy, still hazy
  3716. =========================================================================
  3717. Date:         Thu, 8 Sep 1994 17:36:25 GMT
  3718. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3719. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3720. From:         "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
  3721. Organization: magnet - The Personal Online Source
  3722. Subject:      [A] minimum hardware requirements for as 1.1?
  3723.  
  3724. >Can anyone tell me what the minimum hardware requirements for >running
  3725. >applescript 1.1 are?  Can I run it on anymac, or is it like quicktim >that
  3726. >I need at least a mac II to run it?
  3727.  
  3728. You need at least an 68020 (Mac II,LC) to run AppleScript 1.1
  3729.  
  3730.  
  3731. --------------------------------------------------------
  3732. sent via  m a g n e t / +43-1-522-7-225 / info@magnet.at
  3733. --------------------------------------------------------
  3734. =========================================================================
  3735. Date:         Thu, 8 Sep 1994 12:16:20 -0700
  3736. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3737. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3738. From:         Dave Jaksha <jaksha@NOAO.EDU>
  3739. Subject:      debugger
  3740.  
  3741. Is there a applescript enviroment that has a debugger and find, ect.
  3742.  
  3743. Thanks - Dave
  3744. =========================================================================
  3745. Date:         Thu, 8 Sep 1994 15:25:45 EDT
  3746. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3747. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3748. From:         John Paul Du bois <Designland@AOL.COM>
  3749. Subject:      Re: Scriptable Finder question
  3750.  
  3751. Todd Main writes:
  3752.  
  3753. >>Newbie question: how do you tell the scriptable finder to launch
  3754. an application?  A one-liner would be best for my needs.<<
  3755.  
  3756.  
  3757. tell application "Finder"
  3758.  activate
  3759.  select file "" of folder "" of startup disk
  3760.  open selection
  3761. end tell
  3762.  
  3763. Hope this helps
  3764. John
  3765. =========================================================================
  3766. Date:         Thu, 8 Sep 1994 15:40:15 -0400
  3767. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3768. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3769. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  3770. Subject:      Re: debugger
  3771. In-Reply-To:  <no.id> from "Dave Jaksha" at Sep 8, 94 12:16:20 pm
  3772.  
  3773. --Dave Jaksha wrote:
  3774. >
  3775. >Is there a applescript enviroment that has a debugger and find, ect.
  3776.  
  3777.     There are two that I know of that are shipping: Scripter from Main
  3778. Event Software which I saw at MacWorld Boston this year. It looked ok,
  3779. but there were way too many dialog boxes and it seemed to try and hold
  3780. your hand a lot, but this could have been a side-effect of the way the
  3781. demo was presented. The second is ScriptWizard, there's a demo version
  3782. of this on gaea. From what I've seen of this program, it has some nice
  3783. parts to it (specifically the dictionary feature which I liked a lot),
  3784. but I never looked at the debugger and it the program struck me as still
  3785. being in beta release rather than full 1.0 release.  I'm also pretty
  3786. sure that there will be other AppleScript debugging environments coming
  3787. out in the near future since AppleScript is now a standard part of the
  3788. System Software.
  3789.  
  3790. -Hades
  3791. =========================================================================
  3792. Date:         Thu, 8 Sep 1994 12:57:05 -0700
  3793. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3794. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3795. From:         Derrick Schneider <derrick@NETCOM.COM>
  3796. Subject:      Re: AS apps controlling AS apps
  3797. In-Reply-To:  <199409081734.KAA11217@netcom11.netcom.com>
  3798.  
  3799. On Thu, 8 Sep 1994, Dennis Birch wrote:
  3800.  
  3801. > Can I have a master AS application send data to another AS application and
  3802. > GET data back from it? I haven't been able to figure out how to do it. That
  3803. > is, I think I'm successfully the second AS app the data, but I'm apparently
  3804. > not getting back any data.
  3805.  
  3806. You can use the same "tell application" syntax, as follows:
  3807.  
  3808. ASApp1 (receiver):
  3809. on returnResult(x)
  3810.    return x * 3 --Actually, just writing x * 3 will work too
  3811. end returnResult
  3812.  
  3813. ASApp2 (sender):
  3814. tell application "ASApp1"
  3815.     returnResult(3)
  3816. end tell
  3817.  
  3818. If you run ASApp2 from Script Editor, you will get a 9 in the result
  3819. window (3 * 3).
  3820.  
  3821. This also works for networked AS apps:
  3822. tell application "ASApp1" of machine "Some other machine" of zone "Some
  3823. other zone, if present"
  3824.  
  3825. Hope this helps,
  3826. Derrick
  3827. =========================================================================
  3828. Date:         Thu, 8 Sep 1994 13:13:26 -0800
  3829. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3830. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3831. From:         Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
  3832. Subject:      Re: who what where how
  3833.  
  3834. >Is there any way to use dialogs or other user interface stuff
  3835. >with scripts, such as progress bars (other than the Tao one),
  3836. >change cursor, etc?  I've seen references to userfirst(sp?).
  3837.  
  3838. i tried facespan and eventually gave it up. i now use hypercard for my
  3839. front end. only difficulty is that the scripts are limited to 30k compiled
  3840. which translates to about 7k of typed script.
  3841.  
  3842. >What is osaxen, endora?
  3843.  
  3844. osaxen = plural of osax
  3845. osax is to applescript as xcmd is to hypercard
  3846.  
  3847. kee nethery
  3848. =========================================================================
  3849. Date:         Thu, 8 Sep 1994 16:41:14 -0400
  3850. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3851. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3852. From:         John G Dorsey <jd5q+@ANDREW.CMU.EDU>
  3853. Subject:      Speaking selection/Clipboard?
  3854.  
  3855. My site uses an internally developed mail client, which is, of course,
  3856. not scriptable. =)
  3857.  
  3858. I have Script Tools, which allegedly can speak (using Speech Manager)
  3859. input parameters. What would be the most efficient way to make a script
  3860. that could speak some selected or copied text? The idea would be to make
  3861. an applet, which I would launch from the Finder after selecting/copying
  3862. the text.
  3863.  
  3864. Thanks!
  3865. John Dorsey                      <jd5q+@andrew.cmu.edu>
  3866. Carnegie Mellon University      <jdo240@ohm.ece.cmu.edu>
  3867. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3868.  ftp://lightspeed.pc.cc.cmu.edu/
  3869. http://lightspeed.pc.cc.cmu.edu/
  3870.     (under construction!)
  3871. =========================================================================
  3872. Date:         Thu, 8 Sep 1994 14:30:16 -0800
  3873. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3874. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3875. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  3876. Subject:      Problem running scripts on PowerMac 6100
  3877.  
  3878. Hello there,
  3879.  
  3880. I'm having a problem running some scripts on a PowerMac 6100/60av that ran
  3881. fine on the Centris 610 that I wrote them on. They are both running System
  3882. 7.5b2. The Centris 610 is running a wide variety of extensions and the
  3883. PowerMac is running the bare minimum extensions.
  3884.  
  3885. The Finder sometimes gets a -111 error which looks some sort of memory error.
  3886. I've also had a variety of other crashes. I have never had the full script
  3887. run successfully.
  3888.  
  3889. Here's the chunk of script that just caused the -111 error.
  3890.  
  3891. tell application "Finder"
  3892.   set folderName to "DTS Send Prefs"
  3893.   if folder folderName in preferences folder exists then   <-- problem here
  3894.      set DTSPrefFolder to folder folderName in preferences folder
  3895.      if not (file fileName in DTSPrefFolder exists) then
  3896.         display dialog "The \"DTS WhomToSendTo\" file doesn't exist!"
  3897.         my CreateWhomToSendTo(DTSPrefFolder as string)
  3898.      end if
  3899.   else -- "DTS Send Prefs" does not exist
  3900.        -- We want to create a new folder and the files that go in it.
  3901.      make new folder at preferences folder with properties {name:folderName}
  3902.      my CreateWhomToSendTo(folder folderName in preferences folder as string)
  3903.   end if -- "DTS Send Prefs" exists
  3904. end tell
  3905.  
  3906. The "if folder folderName in preferences folder exists then" usually times
  3907. out and the Finder gets the -111 error. The folder does exist.
  3908.  
  3909. Is there something different about the PowerMacs? Or is there something
  3910. obvious that I'm missing here.
  3911.  
  3912. This script has run on the PowerMac before but I've been getting a lot of
  3913. errors on the PowerMac whenever I try to run my main script which loads this
  3914. script. (I've tried running this script through the main script and as a
  3915. standalone script). Again, these scripts work fine on my Centris 610.
  3916.  
  3917. Thanks for the list,
  3918.  
  3919. Greg
  3920.  
  3921. --------------------------------------------------------------------------
  3922. Greg Francis                | STEP/Star Schools Project
  3923. Research and Development    | Educational Service District 101, Spokane WA
  3924. Technical Support Staff     | Bringing the best in K-12 distance education
  3925. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  3926. =========================================================================
  3927. Date:         Thu, 8 Sep 1994 15:45:56 -0700
  3928. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3929. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3930. From:         Kevin Purcell <kevinpu@ATM.COM>
  3931. Subject:      Re: debugger
  3932.  
  3933. >--Dave Jaksha wrote:
  3934. >>
  3935. >>Is there a applescript enviroment that has a debugger and find, ect.
  3936. >
  3937. >    There are two that I know of that are shipping: Scripter from Main
  3938. >Event Software which I saw at MacWorld Boston this year. It looked ok,
  3939. >but there were way too many dialog boxes and it seemed to try and hold
  3940. >your hand a lot, but this could have been a side-effect of the way the
  3941. >demo was presented.
  3942.  
  3943. Brian:
  3944.  
  3945. Do you have an email address (or even the phone) of Main Event?
  3946.  
  3947. I (and a collegue) talked to Cal Simone at WWDC this year. Strange guy!
  3948.  
  3949. Have they annouced a ship date yet or are they mearly in a late beta?
  3950.  
  3951. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  3952. Attachmate Corp                   xenolith@halcyon.com
  3953. =========================================================================
  3954. Date:         Fri, 9 Sep 1994 11:51:33 +1200
  3955. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3956. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3957. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  3958. Subject:      Setting memory sizes of apps??
  3959.  
  3960. Can you safely reduce the default (?) memory allocation of 200K given to AS
  3961. standalone apps? (Some of us have got less than 10MB RAM....)
  3962.  
  3963. _________________________________________________________________________
  3964. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  3965. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  3966. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  3967. =========================================================================
  3968. Date:         Thu, 8 Sep 1994 16:55:37 -0700
  3969. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3970. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3971. From:         Kevin Purcell <kevinpu@ATM.COM>
  3972. Subject:      Re: debugger
  3973.  
  3974. >--Dave Jaksha wrote:
  3975. >>
  3976. >>Is there a applescript enviroment that has a debugger and find, ect.
  3977. >
  3978. >    There are two that I know of that are shipping: Scripter from Main
  3979. >Event Software which I saw at MacWorld Boston this year. It looked ok,
  3980. >but there were way too many dialog boxes and it seemed to try and hold
  3981. >your hand a lot, but this could have been a side-effect of the way the
  3982. >demo was presented.
  3983.  
  3984. That last piece of mail was meant to go to Brian directly!
  3985.  
  3986. Anyhow Cal just gave me a call! He says they're aren't "way too many dialog
  3987. boxes". I haven't see the product yet so I can't comment one way or the
  3988. other.
  3989.  
  3990. Gotta be careful with those mail addresses :-)
  3991.  
  3992. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  3993. Attachmate Corp                   xenolith@halcyon.com
  3994. =========================================================================
  3995. Date:         Thu, 8 Sep 1994 17:22:02 -0700
  3996. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3997. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  3998. From:         Derrick Schneider <derrick@NETCOM.COM>
  3999. Subject:      Re: Help with a script
  4000. In-Reply-To:  <199409080009.RAA29452@netcom9.netcom.com>
  4001.  
  4002. On Wed, 7 Sep 1994, Richard Petty wrote:
  4003.  
  4004. >     Oops!  SimpleText isn't scriptable and the Scriptable Text Editor (what I
  4005. > actually had in mind) -- included in the AppleScript developer's kit --
  4006. > doesn't read text aloud.
  4007.  
  4008. However, you can do what you wish. As part of the Script Tools collection
  4009. of scripting additions, there is a Speech scripting addition. I actually
  4010. wrote a script that would read the contents of Scriptable Text Editor,
  4011. but I don't have it in front of me so I'm working off of memory:
  4012.  
  4013. tell application "Scriptable Text Editor"
  4014.    speak (the contents of window 1) voice "Male Voice" --Or whatever
  4015. voice you choose
  4016. end tell
  4017. =========================================================================
  4018. Date:         Thu, 8 Sep 1994 22:25:29 GMT
  4019. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4020. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4021. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  4022. Organization: commstalk, & Full Moon Software
  4023. Subject:      Re: ScriptWizard 1.0.1x41 updater
  4024.  
  4025. Hi folks,
  4026.  
  4027. In Regards to my letter <199409081757.AA05040@exnet.com>:
  4028. >
  4029. > It seems there may be a corruption in the updater file that was uploaded
  4030. > to gaea; we are investigating. We'll announce on MACSCRPT as soon as
  4031. > it is safe to download it from gaea. For the time being, try if you wish
  4032. > but we have had reports of FTP/binhex errors while downloading the file.
  4033. >
  4034.  
  4035. It seems that the archive is OK; Fred Terry has downloaded and unpacked
  4036. it OK. (If you have difficulty, we recommend FTPing it down with automatic
  4037. de-binhexing turned off, and then manually de-binhexing it afterwards.)
  4038.  
  4039. The file location on gaea is:
  4040.  
  4041. applescript/updates/ScriptWiz1.0->1.0.1x41.sea.hqx
  4042.  
  4043.  
  4044. best regards, Paul
  4045.  
  4046. +------------------------------------------------------------------+
  4047. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  4048. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  4049. | & Full Moon Software, Inc               || US ph: 408 253 7199
  4050. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  4051. =========================================================================
  4052. Date:         Fri, 9 Sep 1994 00:08:04 -0500
  4053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4055. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4056. Subject:      Re: debugger
  4057. In-Reply-To:  Your message of "Thu, 08 Sep 94 15:45:56 PDT"
  4058.  
  4059. Kevin,
  4060. >
  4061. >Do you have an email address (or even the phone) of Main Event?
  4062. >
  4063. >I (and a collegue) talked to Cal Simone at WWDC this year. Strange guy!
  4064.  
  4065. Check the faq. Honest, it's in there.
  4066.  
  4067. pf
  4068. =========================================================================
  4069. Date:         Fri, 9 Sep 1994 16:34:38 +1000
  4070. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4071. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4072. From:         David Parry <dparry@OZEMAIL.COM.AU>
  4073. Subject:      Re: Open text file and read
  4074.  
  4075. >In regard to your question of opening a SimpleText file and reading it with
  4076. >Speech Manager...
  4077.  
  4078. Excuse me for perhaps being impertinent, but why the hell are so many
  4079. people trying to get the Speech Manager to read stuff?
  4080.  
  4081. Are you just trying to do what the Apple ads think you should do?
  4082. (If all the queries are for work with blind people I could understand)
  4083. But, hey, I find all of the voices in the speech manager really annoying.
  4084.  
  4085. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  4086. > dparry@ozemail.com.au                      Voice:  + 61 7 356 7645 <
  4087. > The System                                 Fax:    + 61 7 356 7790 <
  4088. > 46 Lansdowne Street                        DJP Mobile: 015 150 939 <
  4089. > Wilston QLD 4051                           MJE Mobile: 018 732 521 <
  4090. > Australia                                                          <
  4091. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  4092. =========================================================================
  4093. Date:         Fri, 9 Sep 1994 13:21:54 +0200
  4094. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4095. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4096. From:         Rolf Kocherhans <rolfk@VETVIR.UNIZH.CH>
  4097. Subject:      Password Help
  4098.  
  4099. I am lucking for something like this I would like to be
  4100. able to have a password command, which I can start before
  4101. all the rest of an AppleScript gets executed.
  4102.  
  4103. I tried the Password OSAXEN alredy, it would be good, but
  4104. it compiles the password differently about every 3rd time.
  4105. so it is actually useless.
  4106.  
  4107. Rolf
  4108.  
  4109.                                      \|/
  4110.                                     (o o)
  4111. ________________________________oOo__(_)__oOo_________________________________
  4112.     ___/\_    | Rolf Kocherhans               Internet : rolfk@vetvir.unizh.ch
  4113.    /    o \/| | University Inst.for Virology  Telephone: (+41) 1 3651538
  4114.   /        _| | Winterthurerstr. 266a         Faximile : (+41) 1 3630140
  4115.  /_/\__/-\/   | 8057 Zurich SWITZERLAND
  4116. ______________________________________________________________________________
  4117.    If it wasn't for Windows, we wouldn't have anything to compare Mac's to
  4118. =========================================================================
  4119. Date:         Fri, 9 Sep 1994 14:01:28 +0100
  4120. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4121. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4122. From:         WalrathW <walrathw@RFERL.ORG>
  4123. Subject:      Re: script wizard updater
  4124.  
  4125. I too had problems debinhexing the ScriptWizard updater file at the =
  4126. MACSCRPT archives. Out of curiosity, I took a look inside the file and =
  4127. noticed that the first couple lines were kind of screwed up. After editing =
  4128. these lines, I was able to defunk the archive without problems.
  4129.  
  4130. If you have problems, try going in with a text editor, moving the text =
  4131. which begins "(this file must be converted..." to a newline, and deleting =
  4132. the garbage above it. Eventually a new archive should be uploaded if there =
  4133. really is a problem with the copy there.
  4134.  
  4135. -wayne
  4136. =========================================================================
  4137. Date:         Fri, 9 Sep 1994 08:40:02 -0400
  4138. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4139. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4140. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  4141. Subject:      Re: debugger
  4142. In-Reply-To:  <no.id> from "Kevin Purcell" at Sep 8, 94 04:55:37 pm
  4143.  
  4144. --Kevin Purcell wrote:
  4145. >
  4146. >Anyhow Cal just gave me a call! He says they're aren't "way too many dialog
  4147. >boxes". I haven't see the product yet so I can't comment one way or the
  4148. >other.
  4149.  
  4150.     Well, gee, now there's a big surprise. I certainly wouldn't expect
  4151. the programmer of the product to agree to my criticisms. Remember, all
  4152. of that stuff I posted in my previous article was my opinion of Scripter
  4153. and ScriptWizard. As always, YMMV.
  4154.  
  4155. -Hades
  4156. =========================================================================
  4157. Date:         Fri, 9 Sep 1994 08:42:29 -0400
  4158. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4159. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4160. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  4161. Subject:      Re: Problem running scripts on PowerMac 6100
  4162. In-Reply-To:  <no.id> from "Greg Francis" at Sep 8, 94 02:30:16 pm
  4163.  
  4164. --Greg Francis wrote:
  4165. >
  4166. >Here's the chunk of script that just caused the -111 error.
  4167. >
  4168. >tell application "Finder"
  4169. >  set folderName to "DTS Send Prefs"
  4170. >  if folder folderName in preferences folder exists then   <-- problem here
  4171.  
  4172.     I'm kind of surprised this line compiled correctly. The syntax is
  4173. incorrect. It should read like this:
  4174.  
  4175.         if exists folder folderName in preferences folder then
  4176.  
  4177.     The exists command takes as it's argument a file/folder reference.
  4178. The argument is supposed to come after the command.
  4179.  
  4180. -Hades
  4181. =========================================================================
  4182. Date:         Fri, 9 Sep 1994 08:03:06 -0500
  4183. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4184. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4185. From:         Jason Buberel <jbuberel@UIUC.EDU>
  4186. Subject:      Re: ScriptWizard 1.0.1x41 updater
  4187.  
  4188. Paul,
  4189.  
  4190. I'm not so sure the archive is OK.  Using anarchie 1.3 with automatic
  4191. decoding turned off, stuffit expander 3.5.1 gives me an error:
  4192.  
  4193. Sorry, a disk related error (-48) has occurred
  4194.  
  4195. and then quits.  I would imagine this is the way most people are going to get
  4196. and decode the file, so you might want to re-binhex and repost it.
  4197.  
  4198. -jason
  4199.  
  4200. ============================================
  4201. Jason L. Buberel -=+=-  Graduate Student
  4202. University of Illinois - Neuroscience
  4203. 217.244.0115     -=+=-  jbuberel@uiuc.edu
  4204. ============================================
  4205.  
  4206.  ------ From: Macintosh Scripting Systems, Fri, Sep 9, 1994 ------
  4207.  
  4208. Hi folks,
  4209.  
  4210. In Regards to my letter <199409081757.AA05040@exnet.com>:
  4211. >
  4212. > It seems there may be a corruption in the updater file that was uploaded
  4213. > to gaea; we are investigating. We'll announce on MACSCRPT as soon as
  4214. > it is safe to download it from gaea. For the time being, try if you wish
  4215. > but we have had reports of FTP/binhex errors while downloading the file.
  4216. >
  4217.  
  4218. It seems that the archive is OK; Fred Terry has downloaded and unpacked
  4219. it OK. (If you have difficulty, we recommend FTPing it down with automatic
  4220. de-binhexing turned off, and then manually de-binhexing it afterwards.)
  4221.  
  4222. The file location on gaea is:
  4223.  
  4224. applescript/updates/ScriptWiz1.0->1.0.1x41.sea.hqx
  4225.  
  4226.  
  4227. best regards, Paul
  4228.  
  4229. +------------------------------------------------------------------+
  4230. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  4231. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  4232. | & Full Moon Software, Inc               || US ph: 408 253 7199
  4233. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  4234. =========================================================================
  4235. Date:         Fri, 9 Sep 1994 10:25:03 EDT
  4236. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4237. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4238. From:         Danny Goodman <DGoodman@AOL.COM>
  4239. Subject:      Re: Setting memory sizes of apps??
  4240.  
  4241. >Can you safely reduce the default (?) memory allocation of 200K given to AS
  4242. >standalone apps? (Some of us have got less than 10MB RAM....)
  4243.  
  4244. The definite answer is "sometimes."  You can experiment reducing RAM and
  4245. putting the script through its hardest paces.  A lot depends on what your
  4246. variables might hold.  I've run into cases in which 200K was not enough.
  4247.  
  4248. Danny Goodman
  4249. =========================================================================
  4250. Date:         Fri, 9 Sep 1994 09:24:58 -0500
  4251. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4252. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4253. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4254. Subject:      Re: script wizard updater
  4255. In-Reply-To:  Your message of "Fri, 09 Sep 94 14:01:28 BST"
  4256.  
  4257. Gang,
  4258.  
  4259. >I too had problems debinhexing the ScriptWizard updater file at the =
  4260. >MACSCRPT archives. Out of curiosity, I took a look inside the file and =
  4261. >noticed that the first couple lines were kind of screwed up. After editing =
  4262. >these lines, I was able to defunk the archive without problems.
  4263. >
  4264. >If you have problems, try going in with a text editor, moving the text =
  4265. >which begins "(this file must be converted..." to a newline, and deleting =
  4266. >the garbage above it. Eventually a new archive should be uploaded if there =
  4267. >really is a problem with the copy there.
  4268.  
  4269. Very puzzling. I was using Anarchie 1.3.1 to download it and I was letting it
  4270. do the auto-convert without any problems. Whatever the case, I've pulled down
  4271. the archive, made a change, and put the new version back in the Updates
  4272. directory.
  4273.  
  4274. Let me know if there are any other problems.
  4275.  
  4276. pf
  4277. =========================================================================
  4278. Date:         Fri, 9 Sep 1994 08:10:17 -0800
  4279. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4280. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4281. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  4282. Subject:      Re: Scriptable Finder question
  4283.  
  4284. > --Todd Main wrote:
  4285. > >
  4286. > >Newbie question: how do you tell the scriptable finder to launch
  4287. > >an application?  A one-liner would be best for my needs.
  4288. >
  4289. >     Why do you want to use the Scriptable Finder to do this? All you
  4290. > need to do is type: tell application "app name" to activate.
  4291. >     This works from AppleScript, and will launch any application you
  4292. > have on a mounted volume.
  4293. >
  4294. > -Hades
  4295.  
  4296. With at at least one exception that I know of. There is a bug in SITcomm that
  4297. prevents it from activating if it's splash screen would be completely hidden
  4298. by another window. I've had to work around this by selecting SITcomm and then
  4299. launching it using the Finder.
  4300.  
  4301. This is how I had to do it with SITcomm.
  4302.  
  4303. tell application "Finder"
  4304.    select alias "Calvin(I):AS  Utilities:SITcomm "
  4305.    open selection
  4306. end tell
  4307.  
  4308.  
  4309. Greg
  4310. =========================================================================
  4311. Date:         Fri, 9 Sep 1994 09:47:57 -0500
  4312. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4313. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4314. From:         Chris Dowling <cdowling@FACSTAFF.WISC.EDU>
  4315. Subject:      Trapping user responses during copying?
  4316.  
  4317. AS folk,
  4318. We use a script that copies System Folder files, and I don't want users to
  4319. be able to intervene and stop the copying.  A finderLib command, like the
  4320. following, is used to copy files, and it presents to users a "Copy" dialog
  4321. box with a status bar and a "Stop" button.  Can attempts to stop the
  4322. copying be trapped so that copying continues without interruption?  Can the
  4323. Command-. (cancel) keystrokes be trapped too?
  4324.  
  4325. tell finderLib to copyFiles from "hd:imdc" to "hd:scratch:" without warning
  4326.  
  4327. Thanks,
  4328. Chris
  4329. ~~~~
  4330. Chris Dowling, Manager, SOE Computer Lab,
  4331. 1025 W. Johnson St., Madison, WI  53706, (608) 263-4339
  4332. cdowling@facstaff.wisc.edu
  4333. ~~~~
  4334. =========================================================================
  4335. Date:         Fri, 9 Sep 1994 08:53:49 -0700
  4336. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4337. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4338. From:         Kevin Purcell <kevinpu@ATM.COM>
  4339. Subject:      Re: Problem running scripts on PowerMac 6100
  4340.  
  4341. >--Greg Francis wrote:
  4342. >>
  4343. >>Here's the chunk of script that just caused the -111 error.
  4344. >>
  4345. >>tell application "Finder"
  4346. >>  set folderName to "DTS Send Prefs"
  4347. >>  if folder folderName in preferences folder exists then   <-- problem here
  4348. >
  4349. >    I'm kind of surprised this line compiled correctly. The syntax is
  4350. >incorrect. It should read like this:
  4351. >
  4352. >        if exists folder folderName in preferences folder then
  4353. >
  4354. >    The exists command takes as it's argument a file/folder reference.
  4355. >The argument is supposed to come after the command.
  4356. >
  4357. >-Hades
  4358.  
  4359. Take a look at the Language Guide page 99.
  4360.  
  4361. referenceToObject exists
  4362. exists referenceToObject
  4363.  
  4364. Both forms are legal.
  4365.  
  4366. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  4367. Attachmate Corp                   xenolith@halcyon.com
  4368. =========================================================================
  4369. Date:         Fri, 9 Sep 1994 10:57:04 -0500
  4370. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4371. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4372. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4373. Organization: Alta Group
  4374. Subject:      Cron and Chronograph
  4375.  
  4376. Folks,
  4377.  
  4378. As promised, you'll find these two applications on gaea. They both allow
  4379. you to execute scripts a predetermined times.
  4380.  
  4381. ftp://gaea.kgs.ukans.edu:applescript/addons/Chronograph1.02.sit.hqx
  4382. ftp://gaea.kgs.ukans.edu:applescript/addons/Cron1.0d16.sit.hqx
  4383.  
  4384. Chronograph is a shareware ($15) utility that checks once per minute to
  4385. see if anything is scheduled. Anything that can be double-clicked in the
  4386. Finder can be scheduled for execution. This has both 680x0 and PowerPC
  4387. versions.
  4388.  
  4389. Cron is Chris Johnson's (Gatekeeper) daemon. It also executes applications
  4390. at specificed times. It uses a crontab file to determine what needs to
  4391. execute.
  4392.  
  4393. Enjoy.
  4394.  
  4395. pf
  4396.  
  4397. --
  4398. Fred Terry     Alta Group of Cadence      +1 913 841 1283
  4399. =========================================================================
  4400. Date:         Fri, 9 Sep 1994 11:10:10 -0700
  4401. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4402. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4403. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4404. Subject:      Re: Problem running scripts on PowerMac 6100
  4405.  
  4406. At 08:53 9/9/94 -0700, Kevin Purcell wrote:
  4407. >Take a look at the Language Guide page 99.
  4408. >
  4409. >referenceToObject exists
  4410. >exists referenceToObject
  4411. >
  4412. >Both forms are legal.
  4413.  
  4414. Hmmm...the "backwards" form isn't *entirely* limited to the exists command,
  4415. either.
  4416.  
  4417. For example, the following script successfully poses the expected dialog:
  4418.  
  4419.    "Test" display dialog
  4420.  
  4421. Is it generally true that the direct object may preceed the command name?
  4422. It might be:
  4423.  
  4424.    "Test" display dialog buttons {"OK"}
  4425.  
  4426. also does the expected thing, as does
  4427.  
  4428.    3 beep
  4429.  
  4430. Thanks, Kevin
  4431.  
  4432. --
  4433. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4434. =========================================================================
  4435. Date:         Fri, 9 Sep 1994 14:10:07 -0400
  4436. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4437. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4438. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  4439. Subject:      Re: Cron and Chronograph
  4440.  
  4441. >Folks,
  4442. >
  4443. >As promised, you'll find these two applications on gaea. They both allow
  4444. >you to execute scripts a predetermined times.
  4445. >
  4446. >ftp://gaea.kgs.ukans.edu:applescript/addons/Chronograph1.02.sit.hqx
  4447. >ftp://gaea.kgs.ukans.edu:applescript/addons/Cron1.0d16.sit.hqx
  4448. >
  4449. >Chronograph is a shareware ($15) utility that checks once per minute to
  4450. >see if anything is scheduled. Anything that can be double-clicked in the
  4451. >Finder can be scheduled for execution. This has both 680x0 and PowerPC
  4452. >versions.
  4453. >
  4454. >Cron is Chris Johnson's (Gatekeeper) daemon. It also executes applications
  4455. >at specificed times. It uses a crontab file to determine what needs to
  4456. >execute.
  4457. >
  4458.  
  4459. I have successfully downloaded these files but continue to have difficulty
  4460. downloading the ScriptWizard Update.  I have tried all suggestions posted
  4461. to the list, including your own, but to no avail.  Sorry to be such a pain
  4462. but is just doesn't work for me.
  4463.  
  4464. =====================================================================
  4465. Dr. Frank Lowney, Director, Regional Teacher Education Center
  4466.                   System Administrator, The GC EduNET Project
  4467. CBX 034, School of Education
  4468. Georgia College, Milledgeville, GA 31061-0490
  4469. Voice: (912) 453-5121     FAX: (912) 453-6582
  4470. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  4471.         gcedunet.peachnet.edu
  4472. =====================================================================
  4473. =========================================================================
  4474. Date:         Fri, 9 Sep 1994 20:19:43 +0000
  4475. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4476. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4477. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  4478. Subject:      [Q] writing an osax that calls script objects
  4479.  
  4480. Hello all,
  4481.  
  4482. I have a few questions regarding writing an osax:
  4483.  
  4484. - I'm trying to write one and would like to have a way of calling, from
  4485. within it, a script object or a handler defined by the calling script. Is
  4486. that possible? If so, how's it done?
  4487.  
  4488. - I have almost no documentation on writing osaxen; the only thing I have
  4489. is a doc by Donald Olson, dated December 27, 1992. Is there something more
  4490. up-to-date and free of charge? If not, what are the 'charged' options? In
  4491. particular, I have no idea whatsoever about how to write the 'aete'
  4492. resources. I've heard of a hypercard stack that helps in their editting,
  4493. but have no clue where to get it from.
  4494.  
  4495. Please reply directly to me (wlt@mercurio.uc.pt), since for some reason I
  4496. haven't been receiving the digests.
  4497.  
  4498. Thanks for any and all help.
  4499.  
  4500.  
  4501. Wagner Luiz Truppel                      WLT@MERCURIO.UC.PT
  4502.  
  4503.    *** I don't think. Therefore, I'm not sure I am. ***
  4504. ___________________________________________________________
  4505. =========================================================================
  4506. Date:         Fri, 9 Sep 1994 12:05:26 -0700
  4507. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4508. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4509. From:         Kevin Purcell <kevinpu@ATM.COM>
  4510. Subject:      Re: script wizard updater
  4511.  
  4512. >Gang,
  4513. >
  4514. >>I too had problems debinhexing the ScriptWizard updater file at the =
  4515. >>MACSCRPT archives. Out of curiosity, I took a look inside the file and =
  4516. >>noticed that the first couple lines were kind of screwed up. After editing =
  4517. >>these lines, I was able to defunk the archive without problems.
  4518. >>
  4519. >>If you have problems, try going in with a text editor, moving the text =
  4520. >>which begins "(this file must be converted..." to a newline, and deleting =
  4521. >>the garbage above it. Eventually a new archive should be uploaded if there =
  4522. >>really is a problem with the copy there.
  4523. >
  4524. >Very puzzling. I was using Anarchie 1.3.1 to download it and I was letting it
  4525. >do the auto-convert without any problems. Whatever the case, I've pulled down
  4526. >the archive, made a change, and put the new version back in the Updates
  4527. >directory.
  4528. >
  4529. >Let me know if there are any other problems.
  4530. >
  4531. >pf
  4532.  
  4533. Same for me with Anarchie 1.2.1, no problems having it auto-convert or
  4534. doing the patch.
  4535.  
  4536. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  4537. Attachmate Corp                   xenolith@halcyon.com
  4538. =========================================================================
  4539. Date:         Fri, 9 Sep 1994 15:43:19 EST
  4540. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4541. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4542. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  4543. Subject:      Re: Speaking Selection/Clipboard?
  4544.  
  4545. John G Dorsey <jd5q+@ANDREW.CMU.EDU> wrote:
  4546.  
  4547. >I have Script Tools, which allegedly can speak (using Speech Manager)
  4548. >input parameters. What would be the most efficient way to make a script
  4549. >that could speak some selected or copied text? The idea would be to make
  4550. >an applet, which I would launch from the Finder after selecting/copying
  4551. >the text.
  4552.  
  4553. If you also have Jon's Command Scripting Addition, this can be done. After you
  4554. select some text and copy it to the clipboard you can write a very simple script
  4555. or applet to read it back. Just type in the script line below:
  4556.  
  4557. speak (the clipboard as string)
  4558.  
  4559. If you save it as an applet, you can invoke it by double-clicking after copying
  4560. the text selection to the clipboard. I'd prefer to use OSA Menu and save this
  4561. script in the "Universal Scripts" Folder. This method would eliminate locating
  4562. the applet's icon underneath screen clutter.
  4563.  
  4564. Does anyone know how to copy a selection of text from a non-scriptable
  4565. application to the clipboard via applescript? They only way I can think of is,
  4566. maybe, to use the Menu Events extension. Since the Edit menu is always in the
  4567. same place for practically all Mac application, I would think that this should
  4568. work.
  4569.  
  4570. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  4571. AOL:        kimsont@aol.com
  4572. eWorld:     kimsontran@eworld.com
  4573. =========================================================================
  4574. Date:         Fri, 9 Sep 1994 15:03:05 -0700
  4575. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4576. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4577. From:         Rob Dewhirst <robd@FARALLON.COM>
  4578. Subject:      "Other" Cron sent to gaea.
  4579.  
  4580. When I saw version 1.0d16 of cron on gaea, I examined it to find if the
  4581. version I had was more recent.  It looks like there are at least two versions
  4582. of cron, one by Chris Johnson and one by Mark Malson (the one I have).  So
  4583. including Chronograph, there are three versions.
  4584.  
  4585. I sent the one I have to gaea, because I believe it is simpler and easier to
  4586. set up.
  4587. =========================================================================
  4588. Date:         Fri, 9 Sep 1994 15:26:04 -0600
  4589. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4590. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4591. From:         Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM>
  4592. Subject:      Dict. Error
  4593.  
  4594. REGARDING                Dict. Error
  4595.     We've set up a 4D server on a Macintosh in our zone.  Last night I ran the
  4596. "4D AppleScript" application on my own machine and was able to extract data from
  4597. the 4D server I pointed it to.
  4598.     This morning I launched the "4D AppleScript" program on the server, running
  4599. concurrently with with the 4D server.
  4600.     I went back to my desk and tried to link to it.  I was able to link to the
  4601. server Macintosh, but the error message "Can't open the application's
  4602. dictionary".
  4603.  
  4604. Thanks in advance--
  4605. Richard Petty
  4606. ---------------------------------------------------------------------------
  4607. |   Motorola                                   rwvr90@email.sps.mot.com   |
  4608. |   OE110                                                                 |
  4609. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  4610. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  4611. ---------------------------------------------------------------------------
  4612. =========================================================================
  4613. Date:         Fri, 9 Sep 1994 15:39:55 -0500
  4614. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4615. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4616. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4617. Subject:      ScriptWizard updater
  4618.  
  4619. Hello all,
  4620.  
  4621. We continue to have trouble with the ScriptWizard updater on gaea, so I'm
  4622. blowing it away. I've alerted Full Moon so they can send a replacement.
  4623.  
  4624. Sorry for all of the bother.
  4625.  
  4626. pf
  4627.  
  4628.  
  4629. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  4630. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  4631. =========================================================================
  4632. Date:         Fri, 9 Sep 1994 16:25:35 -0500
  4633. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4634. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4635. From:         Fred Terry <pfterry@LKS.CSI.COM>
  4636. Subject:      Re: "Other" Cron sent to gaea.
  4637. In-Reply-To:  Your message of "Fri, 09 Sep 94 15:03:05 PDT"
  4638.  
  4639. Hi all,
  4640.  
  4641. Rob Dewhirst has placed yet another Cron on gaea. This one was written by Mark
  4642. Malson. You'll find it in
  4643.  
  4644. ftp://gaea.kgs.ukans.edu/applescript/addons/Cron1.0.0.sit.hqx
  4645.  
  4646. He thinks this one is simpler and easier to set up.
  4647.  
  4648. Have a good weekend.
  4649.  
  4650. pf
  4651. =========================================================================
  4652. Date:         Fri, 9 Sep 1994 17:50:00 -0400
  4653. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4654. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4655. Comments:     Warning -- original Sender: tag was ross@BNR.CA
  4656. From:         ab026@FREENET.CARLETON.CA
  4657. Subject:      Re: Speaking Selection/Clipboard?
  4658.  
  4659. ktran@cc.atinc.com wrote:
  4660.  
  4661. >Does anyone know how to copy a selection of text from a non-scriptable
  4662. >application to the clipboard via applescript? They only way I can think of is,
  4663. >maybe, to use the Menu Events extension. Since the Edit menu is always in the
  4664. >same place for practically all Mac application, I would think that this should
  4665. >work.
  4666.  
  4667. As author of Menu Events, I would advise that James Davis' AutoType OSAX
  4668. is probably better for this task.  You can tell it to "press" Command-C.
  4669. KeyQuencer would likely do the trick as well.
  4670.  
  4671. Ross Brown - AWOL Software Productions
  4672. PO Box 24207, 300 Eagleson Road, Kanata, Ontario, Canada K2M 2C3
  4673. publisher of AWOL Utilities - "the best deal in freeware!"
  4674. ab026@freenet.carleton.ca
  4675. =========================================================================
  4676. Date:         Fri, 9 Sep 1994 22:14:02 -0500
  4677. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4678. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4679. From:         "Scott S. Lawton" <ssl@PREFAB.COM>
  4680. Subject:      Re: FileMaker Pro & copying Text field.
  4681.  
  4682. >- AppleScript 1.1 and FileMaker Pro 2.1v1
  4683. >  this works fine for almost all situations EXCEPT
  4684. >  when the text field it is copying is a text field with
  4685. >  a carriage return/Line feed(CR). The Field that I
  4686. >  am copying into will only get the text up to the CR.
  4687.  
  4688. FileMaker uses a "vertical tab" to represent CR's in text fields, but
  4689. apparently it gets converted by the "get".
  4690.  
  4691. Are there any string commands (OSAXen) for AppleScript that will do a
  4692. replace?  In Frontier, you could:
  4693.  
  4694. verticalTab = char(19)  << I think it's 19, where's my chart...
  4695. string.replaceAll(tempString, cr, verticalTab)
  4696.  
  4697. Of course there is a slow way to do it directly in AppleScript: if
  4698. tempString contains verticalTab then loop thru each character....
  4699.  
  4700. cheers,
  4701.  
  4702. -- SSL, PreFab Software
  4703. =========================================================================
  4704. Date:         Fri, 9 Sep 1994 22:14:39 -0500
  4705. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4706. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4707. From:         "Scott S. Lawton" <ssl@PREFAB.COM>
  4708. Subject:      Re: Speaking Selection/Clipboard?
  4709.  
  4710. >>What would be the most efficient way to make a script
  4711. >>that could speak some selected or copied text?
  4712. >
  4713. >Does anyone know how to copy a selection of text from a non-scriptable
  4714. >application to the clipboard via applescript?
  4715.  
  4716. Player Runtime is only $25, and it would certainly suffice for simple
  4717. tasks, eithor/or:
  4718.    do menu menu item "Copy" of menu "Edit"
  4719.    type "c" holding command
  4720.  
  4721. Of course we think the full version is worthwhile for serious scripting of
  4722. non-scriptable apps.
  4723. ftp://gaea.kgs.ukans.edu/applescript/PRs/PlayerInfo.sit.hqx
  4724.  
  4725. cheers,
  4726.  
  4727. -- SSL, PreFab Software
  4728. =========================================================================
  4729. Date:         Fri, 9 Sep 1994 22:14:27 -0500
  4730. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4731. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4732. From:         "Scott S. Lawton" <ssl@PREFAB.COM>
  4733. Subject:      Re: Scriptable Finder question
  4734.  
  4735. >    Why do you want to use the Scriptable Finder to do this? All=
  4736.  you
  4737. >need to do is type: tell application "app name" to activate.
  4738. >    This works from AppleScript, and will launch any application=
  4739.  you
  4740. >have on a mounted volume.
  4741.  
  4742. Actually, any app that supports the 4 required events (I think that's=
  4743.  the
  4744. limitation ... or is it the "AE aware" bit set?).  The venerable=
  4745.  TeachText,
  4746. among others, doesn't.  (Yes, SimpleText does, but not everyone has=
  4747.  a new
  4748. machine or system software.)
  4749.  
  4750. Here's a little tidbit (included with Player) for those who don't=
  4751.  have the
  4752. Scriptable Finder:
  4753.  
  4754.    on tellFinderToOpen(path)
  4755.       ensureFileExists(path)  -- optional error checking
  4756.       set theParent to alias (parentFolder(path))
  4757.      =20
  4758.       tell application "Finder"
  4759.           -- the System 7.0 Finder is somewhat scriptable
  4760.           -- but lacks a dictionary
  4761.           =ABevent FNDRsope=BB theParent given =ABclass fsel=BB:{alias=
  4762.  (path as string)}
  4763.       end tell
  4764.    end tellFinderToOpen
  4765.  
  4766. ensureFileExists & parentfolder are left as an exercise to the reader
  4767. (though of course I'll be happy to supply them on request).
  4768.  
  4769. cheers,
  4770.  
  4771. -- SSL, PreFab Software ... who scripts non-scriptable apps now &=
  4772.  then :)
  4773. =========================================================================
  4774. Date:         Fri, 9 Sep 1994 21:37:00 CDT
  4775. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4776. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4777. From:         "For every action there is an equal and opposite reaction."
  4778.               <yosus@MCS.COM>
  4779.  
  4780. subscribe MacScripting digest yosus@mcs.com
  4781. =========================================================================
  4782. Date:         Fri, 9 Sep 1994 21:37:00 CDT
  4783. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4784. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4785. From:         "For every action there is an equal and opposite reaction."
  4786.               <yosus@MCS.COM>
  4787.  
  4788. subscribe MacScripting digest Tim Walsh
  4789. =========================================================================
  4790. Date:         Fri, 9 Sep 1994 21:39:45 -0800
  4791. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4792. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4793. From:         Preston Holmes <pholmes@UCSD.EDU>
  4794. Subject:      Couple scripting questions...
  4795.  
  4796. Sorry for the vague subject, but I couldn't come up with anything better...
  4797.  
  4798. 1) is it possible to have a variable resolve to a record label?
  4799.  
  4800. This won't work:
  4801.  
  4802. set Fred to "Wilma"
  4803. set Barny to {Fred:85}
  4804. Barny
  4805.  
  4806. Result: {Fred:85}
  4807.  
  4808. I know a label shouldn't be a string ( I've even tried ("wilma" as
  4809. variable) or ("wilma" as label)
  4810. Bottom line is there a way to dynamically label records?
  4811.  
  4812. 2) along the same lines, is there a way to 'compound' variable.  Again as in:
  4813.  
  4814. set List to {1,2,3}
  4815. repeat with i from 1 to (count of list)
  4816. set variable&i to i + 10
  4817. end repeat
  4818.  
  4819. I have found other ways of doing what I originally wanted to, but was
  4820. curious about approaches to these two problems.
  4821.  
  4822. 3) The scriptable finder refuses to open a file more than once even if it
  4823. has been closed.  An example would be a script that opens a file, thats
  4824. all.  Close that file from within the app.  Run the same script again and I
  4825. get an error from the finder saying that the file is already open, though
  4826. it clearly isn't anymore.  The file passes the exists test as well??  Do I
  4827. have to ask the files respective app if it exists?  And what if the app
  4828. isn't scriptable...
  4829.  
  4830. Thanks for any help...
  4831.  
  4832. -Preston
  4833.  
  4834.  
  4835. --
  4836. Preston Holmes                  (h)619-453-9209
  4837. Dept. of Neuroscience, UCSD
  4838. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  4839. =========================================================================
  4840. Date:         Sat, 10 Sep 1994 13:43:34 +0000
  4841. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4842. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4843. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  4844. Subject:      [Q] Constants in AS?
  4845.  
  4846. Greetings,
  4847.  
  4848. is there a way to declare constants in AS, something like a CONST in Pascal
  4849. or a #define in C? I've been using property declarations for some nasty
  4850. hard-wired info scattered thru in some of my AS scripts, but I don't find
  4851. that solution very elegant.
  4852.  
  4853. Thanks.
  4854.  
  4855. Wagner Luiz Truppel                      WLT@MERCURIO.UC.PT
  4856.  
  4857.    *** I don't think. Therefore, I'm not sure I am. ***
  4858. ___________________________________________________________
  4859. =========================================================================
  4860. Date:         Sat, 10 Sep 1994 13:44:09 +0000
  4861. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4862. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4863. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  4864. Subject:      [Q] Symantec 7's address
  4865.  
  4866. >Peter Speck wrote:
  4867.  
  4868. >Too add more to the list of tools: the 'Aete Editor b3' (I found it on
  4869. >Symantec 7) is a HyperCard stack. It is nice, as it is easy to navigate
  4870. >around, adding classes and events to the proper suite, etc.
  4871. >One hint is to make the card larger, and show the hidden fields. Especially
  4872. >in editing the properties of a class, I found this usefull.
  4873.  
  4874. I suppose Symantec 7 is some file server, but what's its address and can
  4875. one ftp anonymously to it?
  4876.  
  4877. Thanks.
  4878.  
  4879. Wagner Luiz Truppel                      WLT@MERCURIO.UC.PT
  4880.  
  4881.    *** I don't think. Therefore, I'm not sure I am. ***
  4882. ___________________________________________________________
  4883. =========================================================================
  4884. Date:         Sat, 10 Sep 1994 13:44:35 +0000
  4885. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4886. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4887. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  4888. Subject:      [Q] AE User Terminology Res Dev Note ?
  4889.  
  4890. Greetings,
  4891.  
  4892. the Apple Event Registry mentions a document by the name 'Apple Event User
  4893. Terminology Resources Developer Note'. Could someone tell me where I can
  4894. find this document, if it's still up-to-date? I need to find some
  4895. information on writing 'aete' resources.
  4896.  
  4897. Thanks!
  4898.  
  4899. Wagner Luiz Truppel                      WLT@MERCURIO.UC.PT
  4900.  
  4901.    *** I don't think. Therefore, I'm not sure I am. ***
  4902. ___________________________________________________________
  4903. =========================================================================
  4904. Date:         Sat, 10 Sep 1994 08:35:36 -0500
  4905. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4906. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4907. From:         Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
  4908. Subject:      Re: POLLS CLOSE TOMORROW
  4909. In-Reply-To:  <199409081508.AA04570@firefly.prairienet.org>
  4910.  
  4911. We need a newsgroup
  4912. =========================================================================
  4913. Date:         Sat, 10 Sep 1994 17:21:51 +0800
  4914. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4915. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4916. From:         "Sin Chuek Ming, Desmond" <dcmsin@HK.SUPER.NET>
  4917. Subject:      gaea mirror site
  4918.  
  4919. Hi,
  4920.  
  4921. Is there a mirror site for gaea? Trying to access gaea through my SLIP
  4922. account from Hong Kong, it takes forever just to get a directory listing.
  4923.  
  4924. Thanks.
  4925.  
  4926.  
  4927. -Des
  4928.  
  4929. --
  4930. Desmond Sin                    |Internet: dcmsin@hk.super.net
  4931. Precision Marketing Ltd.       |(852) 802-2389 voice
  4932. Hong Kong                      |(852) 802-0888 fax
  4933. =========================================================================
  4934. Date:         Sat, 10 Sep 1994 13:31:55 -0500
  4935. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4936. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4937. From:         Mark Aiken <marka@EE.MCGILL.CA>
  4938. Subject:      New File Tracker version announcement
  4939.  
  4940. Hi, all...
  4941.  
  4942.     This message is a little late, so please forgive me if it's a little
  4943. out of synch with Fred's notice of the file posting some time ago. This is
  4944. just an announcement of the newest version of File Tracker, now on Gaea,
  4945. Sumex, etc.
  4946.  
  4947. -- (Begin announcement)
  4948.  
  4949. File Tracker: a file/folder watching utility
  4950.  
  4951.     File Tracker v1.5 is a major upgrade to File Tracker v1.0
  4952. and is recommended to all users. This package should REPLACE the
  4953. older v1.0 package on archives. The upgrade is free to
  4954. registered users; write to the author for more information.
  4955.  
  4956.     File Tracker is a utility package that "Watches" files or
  4957. folders on your hard drive, or on other people's hard drives
  4958. over a network. File Tracker is unique in that it can detect
  4959. exactly what happened when a watched folder or file changes.
  4960. It can detect seperately, for example, files arriving in a
  4961. folder or files being renamed, and perform actions on the
  4962. files involved. A wide range of events are recognized.
  4963.  
  4964.     File Tracker offers a large library of built-in, pre-fab
  4965. actions that it can take in response to events, but also ties
  4966. in closely with AppleScript so you can write your own responses.
  4967. Example scripts and a few scripting additions are provided.
  4968.  
  4969.     File Tracker is ShareWare $15US/$20Cnd, but is fully
  4970. functional "out of the box" and includes a full manual. It has
  4971. been extensively beta-tested and is compatible with all Mac
  4972. models. FILE TRACKER REQUIRES SYSTEM 7 OR BETTER.
  4973.  
  4974.     For a copy of the package, or more information, write to
  4975. the author at the address below.
  4976.  
  4977.  ----------------------------------------------------------------------------
  4978. | Mark A. Aiken                                           marka@ee.mcgill.ca |
  4979. | Mac wizard and shareware author                         "No Hablo Intel"   |
  4980. | Dept. of EE, McGill University, Montreal, CANADA                           |
  4981.  ---------------------------------------------------------------------------
  4982. -
  4983. =========================================================================
  4984. Date:         Sat, 10 Sep 1994 17:00:00 CDT
  4985. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4986. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  4987. From:         "For every action there is an equal and opposite reaction."
  4988.               <yosus@MCS.COM>
  4989. Subject:      Timer items?????
  4990.  
  4991. In the August Macscript digest somebody asked....................
  4992.  In the early betas of AS, there was a folder you could put in your
  4993. system folder called something like "Timer Items" or something like
  4994. that and each of the items you wanted run at a specific time would be
  4995. renamed to that time... so the file would be "[harddisk]:System
  4996. Folder:Timer Items:5:00 PM" and it would run at 5pm.  Did this get
  4997. dropped from the final?
  4998.   Before I saw this I was going to ask if it was possible to name a file a
  4999. time and date, ie. (5:00pm 9/11/94), and have an application or a script
  5000. that would run in the background and scan the files, calling up a file
  5001. whenever it's name matches the time. This item in august digest question
  5002. sounds like it would do this. But...........
  5003.    Nobody answered, does anybody know if this exists? It would be very
  5004. useful (at least to me), If anybody knows of it's existance or have any
  5005. knowledge of it,   Or if you can think of another way to do this. I know
  5006. about Chron, but it's just not the same.I would appreciate any
  5007. info.Thanx.........KingShit
  5008. =========================================================================
  5009. Date:         Sat, 10 Sep 1994 16:06:14 -0700
  5010. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5011. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5012. From:         Phil Corchary <philc@ENGINEER.MRG.USWEST.COM>
  5013. Subject:      AppleScript newbie question
  5014.  
  5015. I'm new to AppleScript, and a new subscriber to this list, so bear with me ..
  5016.  
  5017. Question one ... is there a FAQ for a) this list, b) AppleScript.
  5018. Question two ... I'm writing a script that uses Anarchie to ftp a file,
  5019.  then copy it to an AppleShare server. I have two questions in regard to this.
  5020.  First, how would you recommend changing the file type and creator of the
  5021.  file? Is there an Add-On for that? Is there a good scriptable application
  5022.  that can do this (FileBuddy, Resedit and Bunchtyper all of which I use
  5023.  aren't scriptable). The second part of this is, I'm using the MountVol
  5024.  Add-On to mount the fileserver - but how do I UNmount it? Or is there
  5025.  a better way in general to do this? Maybe a way to copy the file w/o
  5026.  mounting the server? P
  5027.  
  5028.  Thanks in advance! philc
  5029.  (please reply in e-mail as well as to the list ... thx)
  5030. --
  5031. Phil Corchary / Network Specialist / U S WEST MRG, Inc.
  5032. philc@mrg.uswest.com / AppleLink=PCORCHARY / eWorld=philc
  5033. All statements and opinions are mine, and not my employer's
  5034. =========================================================================
  5035. Date:         Sat, 10 Sep 1994 17:45:00 CDT
  5036. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5037. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5038. From:         "For every action there is an equal and opposite reaction."
  5039.               <yosus@MCS.COM>
  5040. Subject:      applescript gopher site
  5041.  
  5042.    I know this is probably old news ("nobody tells me nothing") but this is
  5043. a good applescript gophersite. Probably S.O.S but
  5044. W.T.F................KingShit
  5045. =========================================================================
  5046. Date:         Sat, 10 Sep 1994 17:47:00 CDT
  5047. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5048. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5049. From:         "For every action there is an equal and opposite reaction."
  5050.               <yosus@MCS.COM>
  5051. Subject:      oops  RE:gopher site
  5052.  
  5053. Oops kinda forgot 1 little detail the gophersite  hehe
  5054. gopher://comics.scs.unr.edu:8112/7%20?applescript
  5055. ............KingShit
  5056. =========================================================================
  5057. Date:         Sat, 10 Sep 1994 20:03:32 EDT
  5058. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5059. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5060. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  5061. Subject:      Re: ScriptWizard 1.0.1x41 updater
  5062.  
  5063. Is the updater to ScriptWizard available on AOL?
  5064. =========================================================================
  5065. Date:         Sat, 10 Sep 1994 17:43:04 -0700
  5066. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5067. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5068. From:         David Ray <daver@NETCOM.COM>
  5069. Subject:      Re: Timer items?????
  5070.  
  5071. >  Before I saw this I was going to ask if it was possible to name a file a
  5072. >time and date, ie. (5:00pm 9/11/94), and have an application or a script
  5073. >that would run in the background and scan the files, calling up a file
  5074. >whenever it's name matches the time. This item in august digest question
  5075. >sounds like it would do this. But...........
  5076. >   Nobody answered, does anybody know if this exists? It would be very
  5077. >useful (at least to me), If anybody knows of it's existance or have any
  5078. >knowledge of it,   Or if you can think of another way to do this.
  5079.  
  5080. First, you can't have a colon ":" in the file name. Not allowed.
  5081. You could use something like "5.00pm 9/11/94".
  5082.  
  5083. It would be easy to have a script run and repeatedly check the time and
  5084. filenames, but this would tie up processor power and you wouldn't be able
  5085. to do much else with your computer while it was running. If you use an
  5086. idle..end idle handler with a idle time of, say, 1 minute, it frees up the
  5087. processor for a minute between each checking process. This would be better.
  5088.  
  5089.  
  5090. What's wrong with cron? This is exactly what cron was intended for. There
  5091. are a couple different versions of Cron in net land, I use the one by Chris
  5092. Johnson.
  5093.  
  5094. -Dave
  5095.  
  5096.  -----------------------------------------------------------------------
  5097.  David Ray                Dream Designs          Music Composition
  5098.  daver@netcom.com         PO Box 5631            Interactive Multimedia
  5099.  510-527-9010             Berkeley CA 94705      Virtual Worlds
  5100. =========================================================================
  5101. Date:         Sat, 10 Sep 1994 23:39:18 -0800
  5102. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5103. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5104. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  5105. Subject:      driver for print to disk?
  5106.  
  5107. I have fax software that will autoprint incoming faxes. I would like to
  5108. save incoming faxes to disk in a TIFF format. I can use FolderWatcher to
  5109. note when new files appear and then I can process them with other
  5110. AppleScript applications.
  5111.  
  5112. Anyone know of a printer driver that saves to disk as TIFF? Actually I
  5113. suppose I could use any file format that is common and I could convert it
  5114. to a format readable by OCR but I assume TIFF is probably best.
  5115.  
  5116. Kee Nethery
  5117.  
  5118. _________________________________________________________________
  5119. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  5120. =========================================================================
  5121. Date:         Sun, 11 Sep 1994 08:21:12 EDT
  5122. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5123. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5124. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  5125. Subject:      Re: Timer items?????
  5126.  
  5127. At first glance, of this post, I'd suggest that the poster get his hands on a
  5128. copy of Danny Goodman's book, the Complete AppleScript Handbook.  It has an
  5129. example of how to do what you seem to be after.
  5130. =========================================================================
  5131. Date:         Sun, 11 Sep 1994 08:21:33 EDT
  5132. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5133. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5134. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  5135. Subject:      Accessing Repeating Fields in FileMaker Pro
  5136.  
  5137. Is there a way to move between cells in repeating field repetitions using
  5138. AppleScript calls?
  5139.  
  5140. I am working on a script to facilitate the reorganization of data held in
  5141. repeating fields in one record.
  5142.  
  5143. The concept is this...
  5144.  
  5145. [1]  Import the data in the record from one file into another, identical
  5146. file, as separate records.
  5147.  
  5148. [2]  Sort the records in the second data file.
  5149.  
  5150. [3]  Go to a layout in each data file that has just the repeating fields in
  5151. it.  In the original that has the one record in it with all the repetitions
  5152. of the repeating fields in it and just the one record found.
  5153.  
  5154. [4]  Get data from the cells in the separated field file.
  5155.  
  5156. [5]  Set data to the cells in the continguous field file.
  5157.  
  5158.  
  5159. Seems fairly simple.
  5160.  
  5161. Here's the script...
  5162.  
  5163. tell application "FileMaker Pro"
  5164.  
  5165.  set inCount to 1 -- cell we're dealing with in the contiguous field data
  5166. file
  5167.  set cellCount to 1 -- cell we're dealing with in the separated field data
  5168. file
  5169.  
  5170.  set listRecords to Document "Repeat Test Convert" -- Separated field data
  5171. file
  5172.  set inRecords to Document "Repeat Test" -- Contiguous field data file
  5173.  
  5174.  set recordCount to (Count of Records of listRecords) -- Number of records in
  5175. the separated field data file being dealt with
  5176.  
  5177.  activate -- to watch what's happening
  5178.  Show inRecords
  5179.  
  5180.  repeat with i from 1 to recordCount  -- Identify the record in the separated
  5181. field data file
  5182.  
  5183.   repeat with cellCount from 1 to 3 -- identify the cell in the separated
  5184. field data file
  5185.    Get Data Cell cellCount of Record i of listRecords  -- Get the data from
  5186. the separated field data file
  5187.    Set Data Cell inCount of inRecords To result  -- Set the data in the
  5188. contiguous field data file cell
  5189.   set inCount to inCount + 1 -- increment to the next field in the contiguous
  5190. field data file
  5191.   end repeat
  5192.  end repeat
  5193.  
  5194. end tell
  5195.  
  5196. The problem is that when I try to get to the second row/repetition of the
  5197. repeating fields in the contiguous field data file I can't find the "object"
  5198. that is the first cell of the second row/repetition.
  5199.  
  5200. Is there a special way of addressing repeating fields that facilitates such a
  5201. Get/Set Data call?
  5202.  
  5203. If so, what is it?
  5204. =========================================================================
  5205. Date:         Sun, 11 Sep 1994 08:21:42 EDT
  5206. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5207. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5208. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  5209. Subject:      Accessing a Disconnected Server
  5210.  
  5211. Where I am at, there is a nightly requirement to back up all the data files
  5212. to a central server so that the Novell Administrator can save all the key
  5213. files to tape.
  5214.  
  5215. Occasionally, the connection to this server is disconnected after everyone
  5216. goes home and before the backup is suppoesd to take place.
  5217.  
  5218. I know how to check for whether the connection is there, "list disk".
  5219.  
  5220. However, I don't know how to re-establish the connection, which includes a
  5221. password, to save my FileMaker Pro data files.
  5222.  
  5223. What is the call?  If any.  I'm using System 7.1 software.
  5224. =========================================================================
  5225. Date:         Sun, 11 Sep 1994 07:04:00 PDT
  5226. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5227. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5228. From:         Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
  5229. Subject:      Re: Accessing a Disconnected Server
  5230.  
  5231. [stuff deleted]
  5232. >Occasionally, the connection to this server is disconnected after everyone
  5233. >goes home and before the backup is suppoesd to take place.
  5234. >
  5235. >I know how to check for whether the connection is there, "list disk".
  5236. >
  5237. >However, I don't know how to re-establish the connection, which includes a
  5238. >password, to save my FileMaker Pro data files.
  5239. >
  5240. >What is the call?  If any.  I'm using System 7.1 software.
  5241.  
  5242. Anyone know if System 7.5 would do this with the PowerTalk tools?  Seems
  5243. like that's supposed to provide a universal interface with appletalk
  5244. servers, with one password.  You "log in" to PowerTalk, then you don't
  5245. have to provide passwords for individual servers.  Anyone out there
  5246. tried this?
  5247.  
  5248. todd
  5249. =========================================================================
  5250. Date:         Sun, 11 Sep 1994 10:58:17 -0700
  5251. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5252. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5253. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5254. Subject:      Re: AppleScript newbie question
  5255.  
  5256. At 16:06 9/10/94 -0700, Phil Corchary wrote:
  5257.  
  5258. >Question two ... I'm writing a script that uses Anarchie to ftp a file,
  5259. > then copy it to an AppleShare server. I have two questions in regard to this.
  5260. > First, how would you recommend changing the file type and creator of the
  5261. > file?
  5262.  
  5263. The Scriptable Finder (System 7.5, or $25 from APDA) allows you to change
  5264. the "creator type" and "file type" properties of a file object.  There are
  5265. many Scripting Addition addons for the archaic Finder, but I no longer
  5266. care, so can't point you to them.
  5267.  
  5268.  The second part of this is, I'm using the MountVol
  5269. > Add-On to mount the fileserver - but how do I UNmount it? Or is there
  5270. > a better way in general to do this? Maybe a way to copy the file w/o
  5271. > mounting the server? P
  5272.  
  5273.  
  5274. With Scriptable Finder, you use something like
  5275.  
  5276. tell application Finder
  5277.     put away disk "whatever"
  5278. end tell
  5279.  
  5280. [But this should be avoided for local volumes.]
  5281.  
  5282. With the archiac Finder, you should be able to do
  5283. tell application Finder
  5284.     put away alias "HD:" items {alias "HD:"}
  5285. end tell
  5286.  
  5287. or something like that...check the Finder dictionary entry for the put away
  5288. command...I would have to restart without the Finder Scripting Extension to
  5289. check out the AppleScript syntax.
  5290.    --John
  5291.  
  5292. --
  5293. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5294. =========================================================================
  5295. Date:         Sun, 11 Sep 1994 15:10:59 -0600
  5296. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5297. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5298. From:         Perry Smith <pedz@BGA.COM>
  5299. Subject:      Quicken
  5300.  
  5301. Does anyone know if Quicken is "scritable"?  I guess a more general
  5302. question is what is a simple way to find out if a particular application is
  5303. Apple Script Savy?
  5304.  
  5305. Thanks,
  5306.  
  5307. pedz
  5308. pedz@bga.com
  5309. =========================================================================
  5310. Date:         Sun, 11 Sep 1994 22:16:45 -0500
  5311. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5312. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5313. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  5314. Subject:      Scripting the scriptable Finder
  5315.  
  5316. 1) Does anyone have a handy list of all the OSAX from the "old" Finder that
  5317. have become archaic with the scriptable finder? I've got so many OSAX with
  5318. multiple commands in them that checking them all manually would take a long
  5319. time. If no one's got a list, I'll put one together as I slog through the
  5320. task, but I thought I'd save myself some time.
  5321.  
  5322. 2) Is the Addison-Wesley book on Finder Scripting up-to-date? That is, was
  5323. it written for the Scriptable Finder or for the old one?
  5324.  
  5325. 3) Is Inside Macintosh: Inter-Application Communications (ugh!) the only
  5326. place I can get information on calling Apple Events from within scripts?
  5327. I'm thinking in particular of the Eudroa Notify Controller script, which
  5328. informs Eudora to send a particular Apple Event to an application of your
  5329. choice. On the same topic, I've tried using it with Eudora
  5330. Announcer...whether I choose "Notification On" or "Off", I always get the
  5331. error dialog, as if it paid no attention to me, though Eudora _does_ launch
  5332. the Announcer when it check the mail, but the Announcer never seems to
  5333. receive the "<<event CSOmeNot>>" call, and fails to procede. Nothing is
  5334. ever read to me, and a trap "return "Hello"" that I threw into the
  5335. announcer right after the handler is triggered never gets returned. Is
  5336. there some way I can check to see if Eudora Announcer is, in fact,
  5337. receiving a "CSOmeNot"? Has anyone else gotten this to work?
  5338.  
  5339. 4) On a similar subject, I have learned a bit of a trick. If you have the
  5340. French (or probably other) dialect installed, and you switch to French in
  5341. the formatting menu, you can see the actual AppleEvent commands that are
  5342. being sent by many of the OSAX. I guess some of the OSAXen translations
  5343. aren't set, so AppleScript defaults to displaying the raw AE command.
  5344.  
  5345. Cheers in advance,
  5346. spud.
  5347.  
  5348.  
  5349. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5350. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  5351. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  5352. spud@access.digex.net ----------- WWW page:  http://www.digex.net/~spud
  5353.  
  5354.  
  5355. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  5356. =========================================================================
  5357. Date:         Sun, 11 Sep 1994 22:15:46 -0500
  5358. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5359. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5360. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5361. Subject:      Re: gaea mirror site
  5362. In-Reply-To:  Your message of "Sat, 10 Sep 94 17:21:51 +0700"
  5363.  
  5364. Desmond Sin asked....
  5365.  
  5366. >Is there a mirror site for gaea? Trying to access gaea through my SLIP
  5367. >account from Hong Kong, it takes forever just to get a directory listing.
  5368.  
  5369. Not to my knowledge.
  5370.  
  5371. pf
  5372. =========================================================================
  5373. Date:         Sun, 11 Sep 1994 22:24:39 -0500
  5374. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5375. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5376. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5377. Subject:      Re: ScriptWizard 1.0.1x41 updater
  5378. In-Reply-To:  Your message of "Sat, 10 Sep 94 20:03:32 EDT"
  5379.  
  5380. Charles Pelto asked...
  5381.  
  5382. >Is the updater to ScriptWizard available on AOL?
  5383.  
  5384. Yes, I think it is in the MacUtilities section.
  5385.  
  5386. pf
  5387. =========================================================================
  5388. Date:         Mon, 12 Sep 1994 12:28:45 +1200
  5389. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5390. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5391. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  5392. Subject:      Re: oops  RE:gopher site
  5393.  
  5394. >Oops kinda forgot 1 little detail the gophersite  hehe
  5395. >gopher://comics.scs.unr.edu:8112/7%20?applescript
  5396. >.............KingShit
  5397.  
  5398. I got a LONG listing, including the AppleScript 1.1 extension - I thought
  5399. it was commercial software??
  5400.  
  5401. _________________________________________________________________________
  5402. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  5403. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  5404. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  5405. =========================================================================
  5406. Date:         Sun, 11 Sep 1994 08:24:08 GMT
  5407. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5408. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5409. From:         Central Postmaster <SSW.POSTMSTR@TSOD.LMIG.COM>
  5410. Subject:      Mail Delivery Status
  5411.  
  5412.  ***** Error in Mail Delivery *****
  5413.  
  5414. ROUTING ERROR
  5415.  
  5416.  Recipients:
  5417.  
  5418.  MSMAIL.MGR_SSW1@TSOD.LMIG.COM
  5419. =========================================================================
  5420. Date:         Sun, 11 Sep 1994 21:21:19 -0700
  5421. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5422. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5423. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  5424. Subject:      Re: Scripting the scriptable Finder
  5425.  
  5426. >2) Is the Addison-Wesley book on Finder Scripting up-to-date? That is, was
  5427. >it written for the Scriptable Finder or for the old one?
  5428.  
  5429. The "AppleScript Finder Guide English Dialect" is intended to be up to
  5430. date, and to describe the Scriptable Finder as it exists today--that is,
  5431. the script
  5432. tell application "Finder"
  5433.     version
  5434. end tell
  5435.  
  5436. returns "1.2"
  5437.  
  5438. which is the version of the Finder Scripting Extension (with a note in the
  5439. book that in subsequent versions, the rather more useful Finder version
  5440. will be returned instead).  There are a couple of other instances in which
  5441. futures are mentioned (such as the fact that "Finder" is not in the list of
  5442. running processes).
  5443.  
  5444. --John
  5445.  
  5446. --
  5447. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  5448. =========================================================================
  5449. Date:         Sun, 11 Sep 1994 23:30:23 -0600
  5450. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5451. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5452. From:         Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
  5453. Subject:      Re: Accessing a Disconnected Server
  5454.  
  5455. >Anyone know if System 7.5 would do this with the PowerTalk tools?  Seems
  5456. >like that's supposed to provide a universal interface with appletalk
  5457. >servers, with one password.  You "log in" to PowerTalk, then you don't
  5458. >have to provide passwords for individual servers.  Anyone out there
  5459. >tried this?
  5460. >
  5461. >todd
  5462.  
  5463. Sure, the feature works fine. In fact it is a feature of PowerTalk that
  5464. pre-dates System 7.5 so you aren't dependent on the new system for this.
  5465. You just need to install PowerTalk and add the Novell server to your key
  5466. chain. Of course the down side is that eventually you'll forget your
  5467. various passwords.
  5468.  
  5469. -------------------------------------------------------------
  5470. Steve Bryan                Internet: sbryan@maroon.tc.umn.edu
  5471. Sexton Software          CompuServe: 76545,527
  5472. Minneapolis, MN 55415           Fax: (612) 929-1799
  5473. =========================================================================
  5474. Date:         Mon, 12 Sep 1994 00:26:02 -0800
  5475. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5476. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5477. From:         Preston Holmes <pholmes@UCSD.EDU>
  5478. Subject:      Re: Scripting the scriptable Finder
  5479.  
  5480. >I've tried using it with Eudora
  5481. >Announcer...whether I choose "Notification On" or "Off", I always get the
  5482. >error dialog, as if it paid no attention to me, though Eudora _does_ launch
  5483. >the Announcer when it check the mail, but the Announcer never seems to
  5484. >receive the "<<event CSOmeNot>>" call, and fails to procede. Nothing is
  5485. >ever read to me, and a trap "return "Hello"" that I threw into the
  5486. >announcer right after the handler is triggered never gets returned. Is
  5487. >there some way I can check to see if Eudora Announcer is, in fact,
  5488. >receiving a "CSOmeNot"? Has anyone else gotten this to work?
  5489.  
  5490. I get it to work, but can't get Eudora not to notify the announcer, I've
  5491. added 'please notify ""' in a on quit handler to the announcer but still
  5492. Eudora notifys the Announcer.
  5493. I'm a bit confused about the difference between the Eudora command "please
  5494. notify" and the notify osax?? could somebody fill me in.
  5495.  
  5496. A little trick I put to use this weekend was to use the Script Tools
  5497. "speech" osax for debugging.  Instead of dialog boxes the script tells me
  5498. what it is doing (even things like telling me when one subroutine ends
  5499. etc).  I found it very useful to follow what was going on hidden from view!
  5500.  
  5501. -Preston
  5502.  
  5503. --
  5504. Preston Holmes                  (h)619-453-9209
  5505. Dept. of Neuroscience, UCSD
  5506. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  5507. =========================================================================
  5508. Date:         Mon, 12 Sep 1994 07:25:15 -0400
  5509. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5510. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5511. From:         John Schettino <js12@GTE.COM>
  5512. Subject:      Re: Couple scripting questions...
  5513.  
  5514. >Sorry for the vague subject, but I couldn't come up with anything better...
  5515. >
  5516. >1) is it possible to have a variable resolve to a record label?
  5517. >
  5518. >This won't work:
  5519. >
  5520. >set Fred to "Wilma"
  5521. >set Barny to {Fred:85}
  5522. >Barny
  5523. >
  5524. >Result: {Fred:85}
  5525.  
  5526. You can use our new friend "run script"
  5527. set Fred to "Wilma"
  5528. set Barny to run script "{" & Fred & ":85}"
  5529. Barny
  5530.  
  5531. Result: {wilma:85}
  5532.  
  5533. >2) along the same lines, is there a way to 'compound' variable.  Again as in:
  5534.  
  5535. No, you should use a list for this.
  5536.  
  5537. set variableList to {}
  5538. set aList to {1,2,3}
  5539. repeat with i from 1 to (count of aList)
  5540.         set end of variableList to {i, i + 10}
  5541. end repeat
  5542.  
  5543. variableList
  5544.  
  5545. Result: {{1, 11}, {2, 12}, {3, 13}}
  5546.  
  5547. >3) The scriptable finder refuses to open a file more than once even if it
  5548. I'm not sure what you mean here... Can you post or send a code fragment?
  5549.  
  5550.  
  5551. - john
  5552.  
  5553. -----------------------------------------
  5554. js12@gte.com             GTE Laboratories
  5555. John Schettino                Waltham, MA
  5556. =========================================================================
  5557. Date:         Mon, 12 Sep 1994 06:22:45 PDT
  5558. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5559. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5560. From:         "Andrew T. Johnston" <atjohnst@APPLE.COM>
  5561. Subject:      RE>>Accessing a Disconnected Server
  5562.  
  5563. Hi,
  5564.  
  5565. >[stuff deleted]
  5566. >>Occasionally, the connection to this server is disconnected after everyone
  5567. >>goes home and before the backup is suppoesd to take place.
  5568. >>
  5569. >>I know how to check for whether the connection is there, "list disk".
  5570. >>
  5571. >>However, I don't know how to re-establish the connection, which includes a
  5572. >>password, to save my FileMaker Pro data files.
  5573. >>
  5574. >>What is the call?  If any.  I'm using System 7.1 software.
  5575.  
  5576. >Anyone know if System 7.5 would do this with the PowerTalk tools?
  5577. [snip]
  5578. >Anyone out there tried this?
  5579.  
  5580. Yes, indeed. I've been doing this since PowerTalk was introduced in System
  5581. 7 Pro.
  5582.  
  5583. Sign on to the remote volume in question. Make an alias. Unmount the volume.
  5584. Open the alias file, and answer "Yes" to the dialog that asks about adding
  5585. the service to your key chain. Keep the alias file in a known local folder.
  5586. With the scriptable Finder, the following script will do what you ask, as
  5587. long as your PowerTalk key chain is unlocked.
  5588.  
  5589. property remoteVolumeAlias : alias "Local HD:Known Folder:Remote Volume alias"
  5590.  
  5591. tell application "Finder" -- the scriptable one
  5592.    get original item of alias file remoteVolumeAlias
  5593. end tell
  5594.  
  5595.  
  5596. Hopefully helpful,
  5597.   Andrew
  5598. ------------------
  5599. Andrew T. Johnston
  5600. Apple Canada, Inc.
  5601. atjohnst@apple.com
  5602. =========================================================================
  5603. Date:         Mon, 12 Sep 1994 06:55:08 -0800
  5604. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5605. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5606. From:         Kirk Stork <kastork@NPS.NAVY.MIL>
  5607. Subject:      Re: oops  RE:gopher site
  5608.  
  5609. >>Oops kinda forgot 1 little detail the gophersite  hehe
  5610. >>gopher://comics.scs.unr.edu:8112/7%20?applescript
  5611. >>.............KingShit
  5612. >
  5613. >I got a LONG listing, including the AppleScript 1.1 extension - I thought
  5614. >it was commercial software??
  5615. >
  5616.  
  5617. Anyone else getting a connection refused at this site?  I've tried
  5618. different times, Gopher and MacWeb...no luck.
  5619.  
  5620.    Kirk Stork
  5621. kastork@nps.navy.mil
  5622. =========================================================================
  5623. Date:         Fri, 9 Sep 1994 18:21:19 +0100
  5624. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5625. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5626. From:         Judith Kertisz SUCHARD <suchard@CNAM.FR>
  5627. Subject:      Re: learning apple script
  5628.  
  5629. Tao was the first commercially available book.
  5630. And I was happy to have baught it.
  5631. The begining was very clear: I loved it.
  5632. After that, became hacking, wich is ok, but
  5633. one can do a lot 'normal' things with AS,
  5634. without hacking first.
  5635.  
  5636. I would like to buy the second too, but:
  5637. what is new in it?
  5638.  
  5639. I have all books that I found on HyperCard too.
  5640. You always learn something, from each.
  5641. The problem is it ok for begining or not, that
  5642. is difficult to say to someone who had already
  5643. read all apple's literature before...
  5644.  
  5645. Anyone writing something explaining about applescript
  5646. objects? I have lots of exemples if needed.
  5647. =========================================================================
  5648. Date:         Mon, 12 Sep 1994 09:08:54 -0500
  5649. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5650. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5651. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5652. Subject:      Re: oops RE:gopher site
  5653. In-Reply-To:  Your message of "Mon, 12 Sep 94 12:28:45 +1100"
  5654.  
  5655. Owen Watson commented.....
  5656. >>Oops kinda forgot 1 little detail the gophersite  hehe
  5657. >>gopher://comics.scs.unr.edu:8112/7%20?applescript
  5658. >
  5659. >I got a LONG listing, including the AppleScript 1.1 extension - I thought
  5660. >it was commercial software??
  5661.  
  5662. It is, but a quick perusal of the listing will show you that it contains a
  5663. number of MacHTTP scripts. At one point, MacHTTP's author was talking about
  5664. licensing AppleScript for distribution with his program. That may have
  5665. happened.
  5666.  
  5667. There are a lot of interesting tidbits on this gopher. I can't tell if the
  5668. discussions are from the MacHTTP mailing list or AppleLink.
  5669.  
  5670. pf
  5671. =========================================================================
  5672. Date:         Mon, 12 Sep 1994 11:14:25 -0400
  5673. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5674. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5675. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  5676. Subject:      Re: Accessing Repeating Fields in FileMaker Pro
  5677.  
  5678. >The problem is that when I try to get to the second row/repetition of the
  5679. >repeating fields in the contiguous field data file I can't find the "object"
  5680. >that is the first cell of the second row/repetition.
  5681. >
  5682. >Is there a special way of addressing repeating fields that facilitates such a
  5683. >Get/Set Data call?
  5684. >
  5685. >If so, what is it?
  5686.  
  5687. Filemaker seems to treat repeating fields as one object.  If you 'Get Cell
  5688. "X"' and cell x is a repeating field, filemaker will return all the values
  5689. of the repeating fields to applescript as a list.  This is why applescript
  5690. is a saviour for dealing with repeating fields. Since filemaker has few
  5691. mechanisms for accessing repeating field data, applescript comes to the
  5692. rescue by allowing you to grab the contents of a repeating field,
  5693. manipulate it and stuff it back in (or into another database).
  5694. Caveats:
  5695.  
  5696. 1. Older versions of Filemaker Pro 2.1 would repeat values stuffed into
  5697. repeating fields via applescript ie. repeating field with ten iteration -
  5698. you stuff in two values - those values repeat across all 10 iterations.
  5699. Fix: stuff your applescript list with null "" string for all null values.
  5700.  
  5701. 2.  I've had ongoing crashing problems stuffing information into repeating
  5702. fields.  I have tried several computers and different version of FM and get
  5703. similar problems.  I have notified Claris but have not heard back from
  5704. them.
  5705.  
  5706. Mark Hadfield
  5707. hadfield@sickkids.on.ca
  5708.  
  5709. Mark Hadfield
  5710. hadfield@sickkids.on.ca
  5711. The Hosptial For Sick Children
  5712. =========================================================================
  5713. Date:         Mon, 12 Sep 1994 14:58:26 +1200
  5714. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5715. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5716. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  5717. Subject:      Forms & Eudora
  5718.  
  5719. Has anyone done any forms work that involves linking Eudora with a
  5720. database? Or is the feeling that Eudora is not suitable?
  5721.  
  5722. _________________________________________________________________________
  5723. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  5724. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  5725. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  5726. =========================================================================
  5727. Date:         Mon, 12 Sep 1994 09:55:04 -0500
  5728. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5729. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5730. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  5731. Subject:      Re: oops  RE:gopher site
  5732.  
  5733. >Anyone else getting a connection refused at this site?  I've tried
  5734. >different times, Gopher and MacWeb...no luck.
  5735. >
  5736. >   Kirk Stork
  5737. >kastork@nps.navy.mil
  5738.  
  5739.  
  5740. I cant get connected either.
  5741.  
  5742.  
  5743. Frank C.
  5744. R&E
  5745. =========================================================================
  5746. Date:         Mon, 12 Sep 1994 09:59:43 -0800
  5747. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5748. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5749. From:         Preston Holmes <pholmes@UCSD.EDU>
  5750. Subject:      Re: Couple scripting questions...
  5751.  
  5752. >>3) The scriptable finder refuses to open a file more than once even if it
  5753. >I'm not sure what you mean here... Can you post or send a code fragment?
  5754.  
  5755. Well I'm not sure what I was doing, I think my problem was:
  5756.  
  5757. tell application "Finder"
  5758.         open file ((choose file with prompt "choose") as string)
  5759. end tell
  5760.  
  5761. which doesn't work and when run twice gets the "already open error"
  5762.  
  5763. the solution was to use the syntax:
  5764.  
  5765.         open file (choose file with prompt "choose")
  5766.  
  5767. no problems,
  5768.  
  5769.  
  5770. Thanks for the help with the other Q's
  5771.  
  5772. -Preston
  5773.  
  5774. --
  5775. Preston Holmes                  (h)619-453-9209
  5776. Dept. of Neuroscience, UCSD
  5777. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  5778. =========================================================================
  5779. Date:         Mon, 12 Sep 1994 10:00:05 -0800
  5780. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5781. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5782. From:         Preston Holmes <pholmes@UCSD.EDU>
  5783. Subject:      Docker: a Script for Duo/DuoDock users
  5784.  
  5785. I spent much of this weekend writing my first script of any real use (just
  5786. finished 'the handbook', proof that AS has power for the novice).
  5787.  
  5788. Docker keeps track of icons for the builtin screen and a dock screen.
  5789. I just put it in the Inocming directory on gaea and it should be in the
  5790. scripts directory sometime soon (Thanks Fred!).
  5791. "Docker.as.sit.hqx"
  5792.  
  5793.     I would love people to give it a try before I make a general
  5794. announcement to the powerbook Newsgroup.  As a new scripter I tried to make
  5795. it readable to other new scriptors (because I learned so much by reading
  5796. other's scripts).  More detailed info can be found in the README, below is
  5797. the introduction:
  5798.  
  5799.  
  5800. What is the Docker script?
  5801.  
  5802.      Like many people I have grown to love the Duo/DuoDock system.  A full
  5803. fledged desktop combined with one of the most portable portables.  Also
  5804. like most Mac users I have a bit more than the "Trash" and disk(s) on my
  5805. desktop ;-)   but the Duo does not recognize what the dimensions of the
  5806. screen are when in or out of a dock.  The excellent shareware program
  5807. "Dockernaut" by Steve Martin (martin@metronet.com) can control much of the
  5808. behavior of Duos by keeping separate preference files for each docking
  5809. state, but   the "Finder" preferences only hold the location of the "Trash"
  5810. icon, everything else gets shoved around by the changing screen sizes.
  5811. That's why I wrote this little script.  Docker keeps track of your favorite
  5812. icon placement for two different screen sizes.
  5813.  
  5814.  
  5815. -Preston
  5816.  
  5817. --
  5818. Preston Holmes                  (h)619-453-9209
  5819. Dept. of Neuroscience, UCSD
  5820. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  5821. =========================================================================
  5822. Date:         Mon, 12 Sep 1994 13:20:03 -0500
  5823. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5824. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5825. From:         Fred Terry <pfterry@LKS.CSI.COM>
  5826. Subject:      Re: Docker: a Script for Duo/DuoDock users
  5827. In-Reply-To:  Your message of "Mon, 12 Sep 94 10:00:05 -0900"
  5828.  
  5829. >Docker keeps track of icons for the builtin screen and a dock screen.
  5830. >I just put it in the Inocming directory on gaea and it should be in the
  5831. >scripts directory sometime soon (Thanks Fred!).
  5832. >"Docker.as.sit.hqx"
  5833.  
  5834. You'll find Preston's script at
  5835.  
  5836. ftp://gaea.kgs.ukans.edu/applescript/scripts/Docker.as.sit.hqx
  5837.  
  5838. Have fun.
  5839.  
  5840. pf
  5841. =========================================================================
  5842. Date:         Mon, 12 Sep 1994 09:00:38 -0800
  5843. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5844. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5845. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  5846. Subject:      Re: Forms & Eudora
  5847.  
  5848. >Has anyone done any forms work that involves linking Eudora with a
  5849. >database? Or is the feeling that Eudora is not suitable?
  5850.  
  5851. I've been building a mailed forms processor to database kinda thing and
  5852. I've found Eudora to be the only mail package that seems to work as
  5853. advertised. So, I'd say that Eudora is suited for this kind of application.
  5854.  
  5855. Mine is a HyperCard front end, driving Eudora, talking to a Butler DAL
  5856. database via the DataScript translator (AppleScript to DAL). Seems to work
  5857. quite well.
  5858.  
  5859. Kee Nethery
  5860.  
  5861. _________________________________________________________________
  5862. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  5863. =========================================================================
  5864. Date:         Mon, 12 Sep 1994 12:34:10 -0700
  5865. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5866. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5867. From:         Glenn Massarano <gmass@CCNET.COM>
  5868. Subject:      Re: Accessing a Disconnected Server
  5869. In-Reply-To:  <199409121324.GAA24105@ccnet.ccnet.com>
  5870.  
  5871. > Where I am at, there is a nightly requirement to back up all the data files
  5872. > to a central server so that the Novell Administrator can save all the key
  5873. > files to tape.
  5874. >
  5875. > Occasionally, the connection to this server is disconnected after everyone
  5876. > goes home and before the backup is suppoesd to take place.
  5877. >
  5878. > I know how to check for whether the connection is there, "list disk".
  5879. > > However, I don't know how to re-establish the connection, which includes a
  5880. > password, to save my FileMaker Pro data files.
  5881. >
  5882. > What is the call?  If any.  I'm using System 7.1 software.
  5883. >
  5884.  
  5885. i believe there is a "MountVol" scripting addition that will do this.  i
  5886. have been using this to mount a server volume with a password over appletalk
  5887. and system 7.1.
  5888.  
  5889. -------------------
  5890. glenn massarano
  5891. gmass@ccnet.com
  5892. =========================================================================
  5893. Date:         Tue, 13 Sep 1994 09:05:00 +1200
  5894. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5895. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5896. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  5897.               NZ" <LDO@WAIKATO.AC.NZ>
  5898. Subject:      Re: Scripting the scriptable Finder
  5899.  
  5900. "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  5901.  
  5902. >tell application "Finder"
  5903. >    version
  5904. >end tell
  5905. >
  5906. >returns "1.2"
  5907.  
  5908. My copy returns "1.1".
  5909.  
  5910. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  5911. Info & Tech Services Division              fax: +64-7-838-4066
  5912. University of Waikato            electric mail: ldo@waikato.ac.nz
  5913. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  5914. =========================================================================
  5915. Date:         Mon, 12 Sep 1994 21:51:38 +0000
  5916. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5917. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5918. From:         Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
  5919. Subject:      New version of Easy View on gaea
  5920.  
  5921. By now the version of Easy View on gaea should have been updated from v2.44
  5922. to v2.50. Easy View by Akif Eyler is a setext reader for tidbits, info-mac
  5923. digest etc and I find it very useful.
  5924.  
  5925. This new version makes the following changes, taken from user manual:
  5926.  
  5927. >EV 2.5  August 94
  5928. >* An extension menu is added for using external code segments
  5929. >  (Compatible with BBEdit)
  5930. >* Font and Size menus are made hierarchical
  5931. >* Cancel key does not crash after "Do you want to save?" dialog
  5932.  
  5933. The new versions include support for the speech manager, word count and
  5934. fetching an URL. Keyboard shortcuts can be added to any extension.
  5935.  
  5936. >This program can be distributed freely on any medium, for non-commercial
  5937. >>purposes, along with the enclosed documents. It may not be sold or
  5938. >exchanged >for profit.
  5939.  
  5940. You should be able to find the new version at:
  5941. ftp://gaea.kgs.ukans.edu:/applescript/addons/easy-view-250.hqx
  5942.  
  5943. Happy scripting, Neil.
  5944.  
  5945. Neil Christie, 15   |Voice/Fax: 0131 229 6507
  5946. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  5947. Edinburgh           |-------------------------------------
  5948. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  5949. Scotland            |System 7.1, running PPP on a 14.4K modem
  5950. =========================================================================
  5951. Date:         Tue, 13 Sep 1994 09:35:00 +1200
  5952. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5953. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5954. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  5955.               NZ" <LDO@WAIKATO.AC.NZ>
  5956. Subject:      Re: Couple scripting questions...
  5957.  
  5958. Preston Holmes <pholmes@UCSD.EDU> writes:
  5959.  
  5960. >tell application "Finder"
  5961. >        open file ((choose file with prompt "choose") as string)
  5962. >end tell
  5963. >
  5964. >which doesn't work and when run twice gets the "already open error"
  5965.  
  5966. I copied and pasted that script into a Script Editor window, and it worked
  5967. just fine. I chose an MPW Shell text file, and it opened in MPW.
  5968.  
  5969. Thought: do you recall exactly which application gave you the "already open"
  5970. error? My hunch is, it's not the Finder, but the application that was
  5971. trying to open the file you chose.
  5972.  
  5973. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  5974. Info & Tech Services Division              fax: +64-7-838-4066
  5975. University of Waikato            electric mail: ldo@waikato.ac.nz
  5976. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  5977. =========================================================================
  5978. Date:         Mon, 12 Sep 1994 22:15:05 +0000
  5979. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5980. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  5981. From:         Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
  5982. Subject:      New version of Anarchie on gaea
  5983.  
  5984. I have put Anarchie 1.3.1 into incoming on gaea so it should turn up in
  5985. scriptableapps soon. It adds a guide file for system 7.5 and a few other
  5986. bits and pieces. Full docs are included. It is a binhexed stuff-it archive.
  5987.  
  5988. Anarchie is a full scriptable and recordable ftp program. It costs $10 and
  5989. is shareware and by Peter N Lewis.
  5990.  
  5991. I downloaded it from:
  5992. ftp://src.doc.ic.ac.uk:/computing/systems/mac/umich/util/comm/anarchie1.31.s
  5993. it.hqx.gz
  5994.  
  5995. Hope you like it, Neil.
  5996.  
  5997. Neil Christie, 15   |Voice/Fax: 0131 229 6507
  5998. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  5999. Edinburgh           |-------------------------------------
  6000. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  6001. Scotland            |System 7.1, running PPP on a 14.4K modem
  6002. =========================================================================
  6003. Date:         Mon, 12 Sep 1994 17:28:52 -0400
  6004. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6005. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6006. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  6007. Subject:      Re: Script examples for BBEdit 3.0?
  6008.  
  6009. Friends:
  6010.  
  6011.    Here is my SECOND BBEdit AppleScript, and this one actually does
  6012. something useful :-). Regards to the kind assistance of Sean Elfstrom
  6013. <selfstro@CS.Trinity.Edu>, whose "Fix Headers in AOL" script I boldly
  6014. plagerized. This is an applet which opens one or more MACSCRIPT Digest,
  6015. finds the date of the first entry, then copies that date line to the first
  6016. line of the file. This is useful when viewing the Digest using EasyView,
  6017. which doesn't show the header text before the first date (by the way,
  6018. EasyView would be a strong candidate for scripting). It's pretty cool that
  6019. it even works:
  6020.  
  6021. -----(included script)-----
  6022.  
  6023. on open (fileList)
  6024.         repeat with sourceFile in fileList
  6025.                 tell application "BBEdit 3.0"
  6026.                         activate
  6027.                         open sourceFile as alias
  6028.                         tell front window
  6029.                                 Find "Date: "
  6030.                                 Select Current Line
  6031.                                 set theHeaders to Selected Text
  6032.                                 Go To Line 0
  6033.                                 Insert Text "--------------------" & return
  6034.                                 Insert Text theHeaders
  6035.                                 Close with saving
  6036.                         end tell
  6037.                 end tell
  6038.         end repeat
  6039.         tell application "BBEdit 3.0" to quit
  6040. end open
  6041.  
  6042.    Some questions still plague me, though. For instance, BBEdit has two
  6043. commands, "Select Current Line" and "Select Full Lines" -- are they
  6044. identical? Further, it seems impossible to select more than one line at a
  6045. time, unless they contain contiguous lines of text, wherein it is
  6046. considered a paragraph ("Select Paragraph"). What gives?
  6047.  
  6048.    Clint
  6049.  
  6050.  
  6051.    Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  6052.    Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  6053.    Department of Molecular Biology | 609/258-5993
  6054.    Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  6055. =========================================================================
  6056. Date:         Mon, 12 Sep 1994 18:21:30 -0300
  6057. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6058. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6059. From:         Bill Hutten <bhutten@FOX.NSTN.NS.CA>
  6060. Subject:      Getting FileMaker Pro to find....
  6061.  
  6062. Sorry for the mega-newbie question, but.....
  6063.  
  6064.  
  6065. How the heck do I get FileMaker Pro to find things? I want to do something like
  6066.  
  6067. set foo to field "bar" where field "foo" = "newbie"
  6068.  
  6069.  
  6070. and the above don't work.......also, how can I tell if I didnt find
  6071. anything, or if I found more than one match?
  6072.  
  6073.  
  6074.  
  6075.  
  6076. thanx in advance
  6077.  
  6078. - bill
  6079.  
  6080.  
  6081. | Bill Hutten - bhutten@fox.nstn.ns.ca
  6082. | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6   (902) 453 2482
  6083. |     "Hard to love, when you're bracing for impact." - Martin Amis
  6084. =========================================================================
  6085. Date:         Mon, 12 Sep 1994 17:31:00 CDT
  6086. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6087. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6088. From:         "For every action there is an equal and opposite reaction."
  6089.               <yosus@MCS.COM>
  6090. Subject:      Re: oops  RE:gopher site
  6091.  
  6092. >>>Oops kinda forgot 1 little detail the gophersite  hehe
  6093. >>>gopher://comics.scs.unr.edu:8112/7%20?applescript
  6094. >>>.............KingShit
  6095.  
  6096.  
  6097. >Anyone else getting a connection refused at this site?  I've tried
  6098. >different times, Gopher and MacWeb...no luck.
  6099.  Kirk Stork
  6100. kastork@nps.navy.mil
  6101.  
  6102.  
  6103. I think you can still sneak into this site by using a veronica gopher
  6104. search @ the url  gopher://comics.scs.unr.edu:8112/7%20 and typing in
  6105. "applescript".
  6106. There is also  gopher://userserve.ucsd.edu/11ftp%3aPublic%3aAppleScript%3a
  6107.  so there............................KingShit
  6108. =========================================================================
  6109. Date:         Mon, 12 Sep 1994 18:54:07 EDT
  6110. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6111. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6112. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  6113. Subject:      Re: Accessing Repeating Fields in FileMaker Pro
  6114.  
  6115. I pursued the advice offered about dealing with repeating fields in FileMaker
  6116. Pro...
  6117.  
  6118. ....and yes they are treated like LISTs.
  6119.  
  6120. However, as with the caveats, there are some problems....
  6121.  
  6122.  
  6123. Even the most recent version of FMP, 2.1v3, suffers from the problem of
  6124. repetative implanting.  Alex!!!! HELP!!!!!!!!!
  6125.  
  6126. Haven't encountered the crashing problem mentioned just yet.
  6127.  
  6128. More to follow....
  6129. =========================================================================
  6130. Date:         Mon, 12 Sep 1994 15:53:52 PDT
  6131. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6132. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6133. From:         Joe Scripter <MikeL@EWORLD.COM>
  6134. Subject:      Data to Mail Question***
  6135.  
  6136. Can anyone help with this question someone has asked me?
  6137.  
  6138. Thanks
  6139. ============
  6140. My company used to have its telephone extension list in Microsoft Word and
  6141. Excel formats (it was 4 seperate documents), then would QuickMail them to our
  6142. users and they would have to print it out.  I felt this was both financially
  6143. and time wasteful, so I worked up a solution...  I started my first
  6144. AppleScript.  I am using FileMaker Pro (2.1v3), AppleScript (1.1), Scriptable
  6145. Text Editor (1.1), ResEdit 2.1.3 and Display DA 2.1.
  6146.  
  6147. I have FileMaker do all the text formatting then I have a script that exports
  6148. final info to a text file, that's when AppleScript takes over and formats the
  6149. font and size and moves the text files into stationary pad files.
  6150.  
  6151. I manually have to copy and paste the text into Display DA using ResEdit
  6152. 2.1.3.  I would like to automate this too or find some other solution.
  6153.  Anysuggestions?
  6154.  
  6155. All of our Macs are running System 7.0.1, 7.1, or 7.1.1 with the AppleScript
  6156. components to run (not create) scripts.  I do not want to have to purchase
  6157. any programs (on the user end) to do this.
  6158. =========================================================================
  6159. Date:         Mon, 12 Sep 1994 15:55:00 PDT
  6160. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6161. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6162. From:         Joe Scripter <MikeL@EWORLD.COM>
  6163. Subject:      copy files for backup
  6164.  
  6165. Any suggestions??
  6166.  
  6167. Thanks
  6168. ======
  6169.       using finderLib it was
  6170.  
  6171. tell finderLib
  6172.  
  6173.     copyFiles "MyServer:Desktop Folder:" to alias
  6174. "MainServer:GROUPS:SHARED:Desktop Folder:"
  6175. end tell
  6176.  
  6177.  
  6178. You see, if the MainServer, selected via EtherNet isn't on
  6179. MyServer/computer's desktop, I'm dead in the water.  The backup, scheduled
  6180. for between 7 pm and 12 am, when the Novell Administrator does their backup
  6181. to tape for off-site storage, I'm gone and the backup has failed.
  6182.  
  6183. How do I check if the access is open and if not, how do I open it.  Note:  It
  6184. requires a password.
  6185. =========================================================================
  6186. Date:         Mon, 12 Sep 1994 15:56:05 PDT
  6187. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6188. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6189. From:         Joe Scripter <MikeL@EWORLD.COM>
  6190. Subject:      Re: RE>>Accessing a Disconnected Server
  6191.  
  6192. I have a similar need to transfer files to a remote server. If the server is
  6193. on the desktop, using an alias of the server works fine. However, if the
  6194. server is not on a desktop, a prompt appears requiring the password. Is there
  6195. any way to provide the password with AppleScript?
  6196.  
  6197. Thanks,
  6198.  
  6199. -MJL
  6200. =========================================================================
  6201. Date:         Mon, 12 Sep 1994 22:17:41 -0400
  6202. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6203. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6204. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  6205. Subject:      Re: Getting FileMaker Pro to find....
  6206. In-Reply-To:  <no.id> from "Bill Hutten" at Sep 12, 94 06:21:30 pm
  6207.  
  6208. --Bill Hutten wrote:
  6209. >
  6210. >How the heck do I get FileMaker Pro to find things? I want to do something like
  6211. >
  6212. >set foo to field "bar" where field "foo" = "newbie"
  6213.  
  6214.     Open the FM Pro dictionary with the Script Editor and take a look at
  6215. the Show command. This is the one that performs a find. It's intent is
  6216. to "show" all records matching the request you give it. For instance,
  6217. you particular request would look something like this:
  6218.  
  6219.         Show every record (whose cell "foo" is equal to "newbie")
  6220.  
  6221. -Hades
  6222. =========================================================================
  6223. Date:         Tue, 13 Sep 1994 17:33:29 +1200
  6224. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6225. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6226. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  6227. Subject:      Search & replace
  6228.  
  6229. I'm trying to do a search & replace on an AS variable. Is there an osax
  6230. that will do it, or do I have to code it up using offsets (probably slower,
  6231. as well).
  6232.  
  6233. _________________________________________________________________________
  6234. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  6235. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  6236. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  6237. =========================================================================
  6238. Date:         Tue, 13 Sep 1994 00:06:36 -0800
  6239. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6240. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6241. From:         Preston Holmes <pholmes@UCSD.EDU>
  6242. Subject:      Re: oops  RE:gopher site
  6243.  
  6244. >There is also  gopher://userserve.ucsd.edu/11ftp%3aPublic%3aAppleScript%3a
  6245. > so there............................KingShit
  6246.  
  6247. Since I'm from UCSD I would just want people to know the following from
  6248. their README:
  6249.  
  6250.  "Users accessing the server via internet Gopher are asked to be gentle
  6251. with our little mac here. This is not a major interenet FTP site, but
  6252. rather a system for the UCSD community."
  6253.  
  6254. I'm sure this doesn't matter for the applescript stuff but think twice
  6255. before batch downloading all the picture or sound files ;-).
  6256.  
  6257. PS I have no connection with the above site.
  6258.  
  6259. -Preston
  6260.  
  6261.  
  6262. --
  6263. Preston Holmes                  (h)619-453-9209
  6264. Dept. of Neuroscience, UCSD
  6265. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  6266. =========================================================================
  6267. Date:         Tue, 13 Sep 1994 00:10:28 -0700
  6268. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6269. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6270. From:         Jon Pugh <jonpugh@NETCOM.COM>
  6271. Subject:      Tip of the Week - Paste Reference
  6272.  
  6273. I hadn't noticed the Script Editor 1.1 feature "Paste Reference" before
  6274. today.  I don't really use the Edit menu much anymore, so I just hadn't
  6275. noticed it.  So, when someone asked me about it, I had an "Ah ha!"
  6276. experience.  I had seen some time ago (probably while developing my
  6277. "clipboard info" osax) that the Scriptable Finder puts an object reference
  6278. "obj " data type on the clipboard when you copy stuff.  This is in addition
  6279. to the TEXT name data that you normally use.  So, since your paste command
  6280. uses the name of the item in your script, you need a paste reference
  6281. command to get the object specifier.  There doesn't appear to be a command
  6282. key for this, so I QuicKeyed Control-V to it.
  6283.  
  6284. Now you can click on a file in the Scriptable Finder, copy it, switch to
  6285. the Script Editor and paste an object specifier referencing it into your
  6286. script.  Pretty darn simple.
  6287.  
  6288. The only trick I see is that it helps to have already compiled something
  6289. with the Finder's dictionary already.  Otherwise you get the old << >>
  6290. notation.
  6291.  
  6292. I'll be implementing this in my programs from now on.  I just wish I'd
  6293. noticed it earlier.
  6294.  
  6295. Jon
  6296. =========================================================================
  6297. Date:         Tue, 13 Sep 1994 00:26:17 -0800
  6298. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6299. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6300. From:         Preston Holmes <pholmes@UCSD.EDU>
  6301. Subject:      Error in Docker requirements
  6302.  
  6303. Not that most of you couldn't figure it out but want to clarify a mistake:
  6304.  
  6305. Jon's commands, while excellent, is not required for Docker.  While Mark
  6306. Alldritt's List Screens (from Script Tools) is.
  6307.  
  6308. This blunder will be fixed in the next version (which will also try to fix
  6309. other script bugs).
  6310.  
  6311. sorry...
  6312.  
  6313. Preston
  6314.  
  6315. --
  6316. Preston Holmes                  (h)619-453-9209
  6317. Dept. of Neuroscience, UCSD
  6318. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  6319. =========================================================================
  6320. Date:         Tue, 13 Sep 1994 08:16:08 -0500
  6321. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6322. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6323. From:         Lee Hoong <lhoong@UNIX.CC.EMORY.EDU>
  6324. Subject:      Re: Accessing Repeating Fields in FileMaker Pro
  6325.  
  6326. >I pursued the advice offered about dealing with repeating fields in FileMaker
  6327. >Pro...
  6328. >
  6329. >....and yes they are treated like LISTs.
  6330. >
  6331. >However, as with the caveats, there are some problems....
  6332. >
  6333. >
  6334. >Even the most recent version of FMP, 2.1v3, suffers from the problem of
  6335. >repetative implanting.  Alex!!!! HELP!!!!!!!!!
  6336. >
  6337. >Haven't encountered the crashing problem mentioned just yet.
  6338. >
  6339. >More to follow....
  6340.  
  6341. Charles,
  6342.  
  6343. Repeating field values in FMP are separated by vertical tab (ASCII 29)
  6344. characters.  Your script will have to set/get the individual values with
  6345. this in mind.  I usually like to take advantage of AppleScript's text item
  6346. delimiter property to help manipulate repeating field values.  For example,
  6347.  
  6348. tell application "FileMaker Pro"
  6349.         copy the Current Record of Database 1 to CurrRec
  6350.         copy cellValue of Cell "MyRepeat" to RepeatValues
  6351.         set item 2 of RepeatValues to "2"
  6352.         copy AppleScript's text item delimiters to OldDelim
  6353.         set AppleScript's text item delimiters to ASCII character 29
  6354.         copy RepeatValues as string to NewValues
  6355.         set AppleScript's text item delimiters to OldDelim
  6356.         set cellValue of Cell "MyRepeat" of CurrRec to NewValues
  6357. end tell
  6358.  
  6359. In the above script, if the field "MyRepeat" initially contains 3 repeating
  6360. values (one, two, three), the second repeat will be changed from "two" to
  6361. "2."
  6362.  
  6363. IMPORTANT NOTE:  Be careful when changing AppleScript's text item
  6364. delimiters--this will affedt all your scripts globally.  I always save the
  6365. old/default delimiters to a variable then restore when the manipulations
  6366. are done.  To be even safer, you can embed the change within a try-on error
  6367. routine so that the text item delimiters are restored when something goes
  6368. wrong.
  6369.  
  6370. Lee.
  6371.  
  6372. Lee Hoong
  6373. Dept. of Chemistry
  6374. Emory University
  6375. Atlanta, GA 30322
  6376. Internet: lhoong@unix.cc.emory.edu
  6377. AOL: LHOONG
  6378.  
  6379. Opinions expressed are solely mine; I do not represent Emory University.
  6380. =========================================================================
  6381. Date:         Tue, 13 Sep 1994 08:53:14 -0400
  6382. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6383. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6384. From:         Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
  6385. Subject:      Re: Quicken
  6386. In-Reply-To:  <199409112004.AA01846@freenet3.scri.fsu.edu>
  6387.  
  6388. On Sun, 11 Sep 1994, Perry Smith wrote:
  6389.  
  6390. > Does anyone know if Quicken is "scritable"?  I guess a more general
  6391. > question is what is a simple way to find out if a particular application is
  6392. > Apple Script Savy?
  6393. >
  6394. > Thanks,
  6395.  
  6396. Try to open the dictionary of the program in question, from the Script
  6397. Editor.
  6398.  
  6399. -Abby
  6400. =========================================================================
  6401. Date:         Tue, 13 Sep 1994 09:14:49 -0700
  6402. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6403. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6404. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6405. Subject:      Re: ScriptDebugger
  6406.  
  6407. >John,
  6408. >
  6409. >I'm just curious, what do you think about ScriptDebugger? Have you had much
  6410. >time to play with it? Found anything really goofy?
  6411.  
  6412. Hi, Fred...
  6413.  
  6414.    I (US) mailed off my NDA to Mark...nothing else happened (I was assuming
  6415. it wasn't ready yet).  So I don't know.
  6416.  
  6417.    --John
  6418.  
  6419. --
  6420. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6421. =========================================================================
  6422. Date:         Tue, 13 Sep 1994 12:26:09 EDT
  6423. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6424. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6425. From:         Danny Goodman <DGoodman@AOL.COM>
  6426. Subject:      Re: RE>>Accessing a Disconnected Server
  6427.  
  6428. >However, if the server is not on a desktop, a prompt appears
  6429. >requiring the password. Is there any way to provide the
  6430. > password with AppleScript?
  6431.  
  6432. QuicKeys 3.0 has an extension that passes the password to the remote Mac.  It
  6433. means creating a small script object containing the QK script, and either
  6434. loading the script object at runtime, or storing it as a property.
  6435.  
  6436. Danny Goodman
  6437. =========================================================================
  6438. Date:         Tue, 13 Sep 1994 11:54:21 -0500
  6439. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6440. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6441. From:         Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
  6442. Subject:      Apple ftp site
  6443.  
  6444. Is there an Apple corporate ftp site, with systems extras like
  6445. printer drivers, etc.?  Seems like there used to be an
  6446. "ftp.apple.com", but I can't connect to that now.
  6447.  
  6448. Regards,
  6449. Todd Main
  6450. =========================================================================
  6451. Date:         Tue, 13 Sep 1994 13:26:56 -0400
  6452. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6453. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6454. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  6455. Subject:      Re: Apple ftp site
  6456. In-Reply-To:  <no.id> from "Todd Main" at Sep 13, 94 11:54:21 am
  6457.  
  6458. --Todd Main wrote:
  6459. >
  6460. >Is there an Apple corporate ftp site, with systems extras like
  6461. >printer drivers, etc.?  Seems like there used to be an
  6462. >"ftp.apple.com", but I can't connect to that now.
  6463.  
  6464.     If you are having trouble connecting to ftp.apple.com you should try
  6465. ftp.austin.apple.com or ftp.support.apple.com. For the WWW-savvy people
  6466. around here take a look at http://www.apple.com or
  6467. http:///www.info.apple.com.
  6468.  
  6469. -Hades
  6470. =========================================================================
  6471. Date:         Tue, 13 Sep 1994 13:29:29 -0400
  6472. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6473. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6474. From:         Data <czen@COLUMBIA.EDU>
  6475. Subject:      Re: Apple ftp site
  6476. In-Reply-To:  <199409131702.AA07911@mailhub.cc.columbia.edu>
  6477.  
  6478. > Is there an Apple corporate ftp site, with systems extras like
  6479. > printer drivers, etc.?  Seems like there used to be an
  6480. > "ftp.apple.com", but I can't connect to that now.
  6481.  
  6482. try ftp.support.apple.com
  6483.  
  6484. /data                                                  <czen@columbia.edu>
  6485.               Matrix 29.12 Op and Control Strip Modules Archive Maintainer
  6486. --------------------------------------------------------------------------
  6487. voice 212-853-7882                      Matrix 29.12 now fully operational
  6488. --------------------------------------------------------------------------
  6489. Love your enemies: they'll go crazy trying to figure out what you're up to.
  6490. =========================================================================
  6491. Date:         Tue, 13 Sep 1994 10:49:14 PDT
  6492. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6493. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6494. From:         Brad Schrick <brad@APE.COM>
  6495. Subject:      Re: Apple ftp site
  6496.  
  6497. >Is there an Apple corporate ftp site, with systems extras like
  6498. >printer drivers, etc.?  Seems like there used to be an
  6499. >"ftp.apple.com", but I can't connect to that now.
  6500.  
  6501. -- There are two WWW sites for Apple now, at least two I should say, at
  6502.  
  6503. www.apple.com and www.info.apple.com
  6504.  
  6505. one second...
  6506.  
  6507. I couldn't get to ftp.apple.com either, but it's listed below... I couldn't
  6508. get to www.apple.com, but I could get to www.info.apple.com, and they
  6509. mention ftp.info.apple.com as the ftp site.  Here is their list of sites;
  6510. if you need the URLs for anything listed but don't have Web access, let me
  6511. know and I'll try to make time to get them.
  6512.  
  6513. Apple Related Web Pages
  6514.  
  6515. This page details specific support information from each of the product
  6516. groups and lists additional WWW sites both inside and external to Apple
  6517. Computer, Inc.
  6518.  
  6519. ____________________________________________________________________________
  6520. ___________________________
  6521. Apple Product Support Team Home Pages
  6522.  
  6523. * Power Macintosh Support
  6524.  
  6525. * PowerBook Support
  6526.  
  6527. * Quadra/Centris Support
  6528.  
  6529. * Printer/Peripheral Support
  6530.  
  6531. * Performa Support
  6532.  
  6533. * PIE/Newton Support
  6534.  
  6535. * Networking and Communication Support
  6536.  
  6537. * K-12 Education Support
  6538.  
  6539. * System Software Support
  6540.  
  6541. * Other Apple Software
  6542.  
  6543.  
  6544.  
  6545. ____________________________________________________________________________
  6546. ___________________________
  6547.  
  6548. Apple Developer Support and Information
  6549. * Developer Support Programs A comprehensive listing of developer programs
  6550. and how they might fit your needs.
  6551.  
  6552. * Apple Developer University The latest technical instruction for Macintosh
  6553. developers.
  6554.  
  6555. ____________________________________________________________________________
  6556. ___________________________
  6557.  
  6558. The Information Alley Newsmagazine
  6559. * The Information Alley Apple's premier technical newsmagazine.
  6560.  
  6561. ____________________________________________________________________________
  6562. ___________________________
  6563. Apple Fax Technical Support Catalog
  6564.  
  6565. * Technical Quick Fixes and Documentation These are the same files that are
  6566. available on the FaxBack system at 800-SOS-APPL.
  6567. ____________________________________________________________________________
  6568. ___________________________
  6569. QuickDraw GX Home Page
  6570.  
  6571. * QuickDraw GX Apple Computer's new imaging model for the Macintosh and
  6572. Power Macintosh computers.
  6573.  
  6574. ____________________________________________________________________________
  6575. ___________________________
  6576. Apple e-Mail Mailing Lists
  6577.  
  6578. * Apple List Processor Join any of four official Apple e-mail mailing lists.
  6579.  
  6580. ____________________________________________________________________________
  6581. ___________________________
  6582. Additional Apple Internet Sites
  6583.  
  6584. * www.apple.com The Apple Computer WWW Server
  6585.  
  6586. * info.hed.apple.com The Apple Higher Ed Gopher Server at University of
  6587. Minnisota (the Fighting Gophers)
  6588.  
  6589. * ftp.info.apple.com
  6590.  
  6591. * ftp.apple.com
  6592.  
  6593. * aux.support.apple.com An Apple UNIX related site
  6594.  
  6595. * spinaltap.micro.umn.edu Tech Info Library via Gopher
  6596.  
  6597.  
  6598. ____________________________________________________________________________
  6599. ___________________________
  6600. Apple Related Home pages that are not Sponsored by Apple Computer, Inc.
  6601.  
  6602. * Farallon Web Server
  6603.  
  6604. * Global Village
  6605.  
  6606. * MacWeb from EI Net
  6607.  
  6608. * PowerPC News
  6609.  
  6610. * Macintosh Internet resources from the University of Washington
  6611.  
  6612. * Arizona Macintosh Users Group
  6613.  
  6614. * Newton info from the University of Houston.
  6615.  
  6616. * Microlib Macintosh Archive from The University of Texas
  6617.  
  6618.  
  6619. ____________________________________________________________________________
  6620. ___________________________
  6621.  
  6622. Return to Apple Home Page
  6623.  
  6624. web.pages1.html/Apple Computer Inc./www@spock.austin.apple.com
  6625.  
  6626.  ___________________________________________________________________________
  6627.  Brad Schrick                         or try
  6628.  Engineering Software Concepts, Inc.    Embry-Riddle Aeronautical University
  6629.  236 Hamilton Avenue / PO Box 66        600 S Clyde Morris Blvd
  6630.  Palo Alto, California 94301            Daytona Beach, FL 32114
  6631.  (415) 325 4321 (messages)              (904) 226 6200
  6632.  brad@ape.com                           schrickb@db.erau.edu
  6633.  esc@isl.stanford.edu                   http://macwww.db.erau.edu/
  6634.  ---------------------------------------------------------------------------
  6635. =========================================================================
  6636. Date:         Tue, 13 Sep 1994 11:04:54 -0800
  6637. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6638. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6639. From:         Mike Hopkins <mhopkins@NETCOM.COM>
  6640. Subject:      New ScriptWizard patcher
  6641.  
  6642. We have posted another patcher onto gaea for downloading.  Hopefully this
  6643. one isn't corrupted.  This constitutes the final release of the updater and
  6644. revs. ScriptWizard to v 1.0.1.  As always, we welcome all your bug reports,
  6645. comments and criticisms so that we can keep improving ScriptWizard.
  6646.  
  6647. The file name is: SCW101x41.hqx
  6648.  
  6649. Best Regards,
  6650.  
  6651. MGH
  6652.  
  6653. Mike Hopkins                |   PH:  (408)366-8921
  6654. Full Moon Software, Inc.    |   FAX: (408)252-2378
  6655. P.O. Box 700237             |   CIS: 70713,2664
  6656. San Jose, CA  95170         |   AOL: MHopkins
  6657. =========================================================================
  6658. Date:         Tue, 13 Sep 1994 11:07:38 -0700
  6659. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6660. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6661. From:         Bob Beamesderfer <beamesde@NEWS.LATIMES.COM>
  6662.  
  6663. SUBSCRIBE, Bob Beamesderfer
  6664. =========================================================================
  6665. Date:         Tue, 13 Sep 1994 20:56:38 +0200
  6666. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6667. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6668. From:         Holger Skok <skok@ITWDS1.ENERGIETECHNIK.UNI-STUTTGART.DE>
  6669. Subject:      Scripting Stuffit Lite?
  6670.  
  6671. Hi everyone,
  6672.  
  6673. My first try to actually submit something:
  6674.  
  6675. I'm trying to use Applescript 1.0 to update a Stuffit Archive created
  6676. by StuffitLite. I tried several commands contained in the dictionary
  6677. of StuffitLite, but many of them don't seem to work. I could select all,
  6678. but I could neither select by name, nor by number. I couldn't get the
  6679. filecount out of the archive...
  6680.  
  6681. In short: I'm at a loss.
  6682.  
  6683. Is there any documentation available for Scripting Stuffit Lite?
  6684. Are there any sample scripts using the more complex commands of Stuffit
  6685. Lite (I've got the simple drag-and-drop scripts to create an archive or
  6686. to add to an existing archive, but they don'T use many of StuffitLite's
  6687. commands).
  6688.  
  6689. Thanks in advance for any pointer or hints...
  6690. HSK
  6691. =========================================================================
  6692. Date:         Tue, 13 Sep 1994 13:57:09 -0500
  6693. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6694. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6695. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6696. Subject:      Re: New ScriptWizard patcher
  6697. In-Reply-To:  Your message of "Tue, 13 Sep 94 11:04:54 -0900"
  6698.  
  6699. >The file name is: SCW101x41.hqx
  6700.  
  6701. And you'll find it in
  6702.  
  6703. ftp://gaea.kgs.ukans.edu/applescript/updates/SCW101x41.hqx
  6704. =========================================================================
  6705. Date:         Tue, 13 Sep 1994 15:54:25 -0400
  6706. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6707. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6708. From:         Howard White <hwhite@CCS.NEU.EDU>
  6709. Subject:      Archive of AppleScripts
  6710.  
  6711. Hello Scripters
  6712.  
  6713. Is these a public domain archive of AppleScripts out there?
  6714.  
  6715.  
  6716. Howard White, PC Tech. Coor.
  6717. Northeastern University
  6718. Office of VP Information Services
  6719. 360 Huntington Ave
  6720. 275 Richards Hall
  6721. Boston, MA 02115
  6722.  
  6723. Office Phone:617-373-4275
  6724. Portable Phone:617-840-3881
  6725. FAX: 617-373-2054
  6726. http://h-white.acs.neu.edu/
  6727. =========================================================================
  6728. Date:         Tue, 13 Sep 1994 17:18:28 -0300
  6729. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6730. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6731. From:         Bill Hutten <bhutten@FOX.NSTN.NS.CA>
  6732. Subject:      Getting multiple-record values from FMP as a list...
  6733.  
  6734. Has anyone been successful in getting FileMaker Pro to pass back a list of
  6735. values from several records as a list?
  6736.  
  6737. What I want is something like:
  6738.  
  6739. Set myList to Cell "Person"
  6740.  
  6741. and get, not just the data for the current record, but for all the
  6742. currently found records...Is there any way to do this? If I can't do it in
  6743. one command, how do I step through records?
  6744.  
  6745. Any help appreciated.
  6746.  
  6747.  
  6748. - bill
  6749.  
  6750.  
  6751. | Bill Hutten - bhutten@fox.nstn.ns.ca
  6752. | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6   (902) 453 2482
  6753. |     "Hard to love, when you're bracing for impact." - Martin Amis
  6754. =========================================================================
  6755. Date:         Tue, 13 Sep 1994 21:20:41 +0000
  6756. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6757. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6758. From:         Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
  6759. Subject:      How to set a FileMaker Pro field to text >1 line
  6760.  
  6761. Has anyone managed to set a FileMaker Pro field to a text string including
  6762. a return character. I have treid many methods including playing with
  6763. AppleScript's text item delimiters. I can correctly display the text on
  6764. screen in a dialog box but FileMaker Pro usually only inserts the first
  6765. line of the text. I  have tried putting it through a loop to replace ascii
  6766. character x with z but it doesn't work for me. I have triued using as
  6767. string, as text etc as part of the string and as a separate statement
  6768. before the set.
  6769.  
  6770. As you can see at present I'm only using FileMaker Pro 2.0. I have read all
  6771. the docs and looked at all the examples I can.
  6772.  
  6773. tell application "FileMaker Pro 2.0"
  6774.         activate
  6775. Set Data Field "Message:" of Database "E-mail DB" To (Get Data Field
  6776. "Message:" of Database "E-mail DB") & (ASCII character 13) & (paragraph
  6777. counter of message_field)
  6778. end tell
  6779.  
  6780. The above set line fails with (ASCII character 13), return and "/r", help!
  6781.  
  6782. Failing that has anyone got any SMTP based receiving E-mail programs that
  6783. are scriptable. Eudora only sends by SMTP.
  6784.  
  6785. At present I'm hoping to step through all my e-mail messages as text files
  6786. extracting each field and inserting it into Eudora or FileMaker Pro so that
  6787. it takes up less room and is searchable. At present I'm using LeeMail 2.0.4
  6788. which has no find or scripting support.
  6789.  
  6790. Any other real world samples would be appreciated if they're small.
  6791.  
  6792. Many thanks, Neil.
  6793. P.S has anyone seen QuickTime 2.0 for ftping I hear it's on some BBSs.
  6794.  
  6795. Neil Christie       |Voice/Fax: 0131 229 6507
  6796. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  6797. Edinburgh           |-------------------------------------
  6798. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  6799. Scotland            |System 7.1, running PPP on a 14.4K modem
  6800. =========================================================================
  6801. Date:         Tue, 13 Sep 1994 16:32:40 -0400
  6802. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6803. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6804. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  6805. Subject:      Re: Getting multiple-record values from FMP as a list...
  6806. In-Reply-To:  <no.id> from "Bill Hutten" at Sep 13, 94 05:18:28 pm
  6807.  
  6808. --Bill Hutten wrote:
  6809. >
  6810. >Has anyone been successful in getting FileMaker Pro to pass back a list of
  6811. >values from several records as a list?
  6812.  
  6813.     Yup. All the time. You can set values in multiple records as
  6814. well. You just have to use Fields instead of Cells. Think of a FM Pro
  6815. database file as a really big table. Each record in a row in that table,
  6816. each column of the table are called Fields, and a cell of the table is
  6817. the intersection of the Field and a Record.
  6818.  
  6819. >What I want is something like:
  6820. >
  6821. >Set myList to Cell "Person"
  6822.  
  6823.     Try: Set myList to Field "Person".
  6824.  
  6825. >and get, not just the data for the current record, but for all the
  6826. >currently found records...Is there any way to do this? If I can't do it in
  6827. >one command, how do I step through records?
  6828.  
  6829.     You only need to step through records in FM Pro in rare occasions.
  6830. If you need to batch process record information you are better off
  6831. putting the information into a list and then using the list to update
  6832. the range of records.
  6833.  
  6834. -Hades
  6835. =========================================================================
  6836. Date:         Tue, 13 Sep 1994 16:50:46 -0400
  6837. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6838. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6839. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  6840. Subject:      Re: How to set a FileMaker Pro field to text >1 line
  6841. In-Reply-To:  <no.id> from "Neil Christie" at Sep 13, 94 09:20:41 pm
  6842.  
  6843. --Neil Christie wrote:
  6844. >
  6845. >Has anyone managed to set a FileMaker Pro field to a text string including
  6846. >a return character. I have treid many methods including playing with
  6847. >AppleScript's text item delimiters. I can correctly display the text on
  6848. >screen in a dialog box but FileMaker Pro usually only inserts the first
  6849. >line of the text. I  have tried putting it through a loop to replace ascii
  6850. >character x with z but it doesn't work for me. I have triued using as
  6851. >string, as text etc as part of the string and as a separate statement
  6852. >before the set.
  6853. >
  6854. >As you can see at present I'm only using FileMaker Pro 2.0. I have read all
  6855. >the docs and looked at all the examples I can.
  6856.  
  6857.     What you are missing is the fact that FM Pro doesn't use the return
  6858. character to designate paragraphs in its text fields. It only looks like
  6859. it does because FM Pro does some on-the-fly translations. One way to
  6860. handle this problem is to perform a get on text field that from FP Pro
  6861. that has a return character in it. If you then show the result of that
  6862. get in the Result window in AppleScript you will see the "box" character
  6863. that represents the FM Pro "return" chracter. For those of you who like
  6864. working with ASCII codes and the like the character that FM Pro uses is
  6865. the Vertical Tab character, which you can generate with the Page Up key
  6866. on an extended keyboard. If you copy and paste that "box" character from
  6867. the Result window to the Script window you can assign a property to it
  6868. and then you can use it throughout your script.
  6869.  
  6870. -Hades
  6871. =========================================================================
  6872. Date:         Tue, 13 Sep 1994 20:40:27 EDT
  6873. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6874. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6875. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  6876. Subject:      Re: New ScriptWizard patcher
  6877.  
  6878. The latest ScriptWizard Update is NOT available on AOL as far as I can tell
  6879. via extensive searches of the Mac area's library.
  6880.  
  6881. Could someone please put it here?
  6882. =========================================================================
  6883. Date:         Tue, 13 Sep 1994 20:42:28 EDT
  6884. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6885. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6886. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  6887. Subject:      Accessing Repeating Fields in FileMaker Pro w/AS
  6888.  
  6889. Good idea there, with that information about using the delimiters aspect...
  6890.  
  6891. tell application "FileMaker Pro"
  6892.         copy the Current Record of Database 1 to CurrRec
  6893.         copy cellValue of Cell "MyRepeat" to RepeatValues
  6894.         set item 2 of RepeatValues to "2"
  6895.         copy AppleScript's text item delimiters to OldDelim
  6896.         set AppleScript's text item delimiters to ASCII character 29
  6897.         copy RepeatValues as string to NewValues
  6898.         set AppleScript's text item delimiters to OldDelim
  6899.         set cellValue of Cell "MyRepeat" of CurrRec to NewValues
  6900. end tell
  6901.  
  6902.  
  6903. ..., I think I was sort of working in that direction in a round-about manner.
  6904.  
  6905. What I've done is this...
  6906.  
  6907. This database has 13 repeating fields, each capable of up to 800 repetitions.
  6908.  
  6909.  
  6910.  
  6911. tell application "FileMaker Pro"
  6912.  
  6913.      set sepRec to Document "Separated Database"
  6914.      set repRec to Document "Repeating Database"
  6915.      set recCount to (Count of Records of sepRec)
  6916.  
  6917.      repeat with i from 1 to recCount
  6918.           set repeatList to repeatList & (Get Data Cell repeatField of Record
  6919. i of sepRec) & ASCII character 29 as text
  6920.      end repeat
  6921.  
  6922.      repeat with i from (recCount+1) to 800
  6923.           set repeatList to repeatList & ""
  6924.      end repeat
  6925.  
  6926.      Set Data Cell repeatField of repRec to cellList
  6927.  
  6928. end tell
  6929.  
  6930.  
  6931.  
  6932. The reason for the set repeatList to repeatList & this & that is because with
  6933. the data I'm working with I run "Out of Memory".  [Note:  How does one
  6934. increase the memory to get more room in a script?  This Mac has 24 MB of RAM
  6935. on it and it is beyond me how I'm "running out of memory" on something this
  6936. simple.  I've got Script Editor up to 2 MB.]
  6937.  
  6938. The reason for the second repeat, stuffing nulls in behind the real data, is
  6939. that there is the problem about extra cells having the data duplicated in
  6940. them until the end of all visible repetitions in a layout.
  6941.  
  6942.  
  6943. Problem is that after a while, the system hangs.  I guess this confirms that
  6944. there is still a serious problem somewhere in the "works".
  6945.  
  6946. I've added my two-bits to Claris Tech Support about the product manager's
  6947. failure to make accessing a given repetition in a repeating field so
  6948. difficult.
  6949.  
  6950. If enough people do the same, it might make a difference....
  6951. =========================================================================
  6952. Date:         Tue, 13 Sep 1994 19:49:50 -0700
  6953. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6954. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6955. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6956. Subject:      Re: Getting multiple-record values from FMP as a list...
  6957.  
  6958. >Has anyone been successful in getting FileMaker Pro to pass back a list of
  6959. >values from several records as a list?
  6960. >
  6961. >What I want is something like:
  6962. >
  6963. >Set myList to Cell "Person"
  6964. >
  6965. >and get, not just the data for the current record, but for all the
  6966. >currently found records...Is there any way to do this? If I can't do it in
  6967. >one command, how do I step through records?
  6968.  
  6969. Well, the shortest script I can write which does something like that is
  6970.  
  6971. tell application "FileMaker Pro"
  6972.     Fields
  6973. end tell
  6974.  
  6975. which returns a list of lists.  Each inner list is a list of the contents
  6976. of each record for the corresponding field.  The field content lists are in
  6977. creation order, but only the fields in the current layout of the frontmost
  6978. database are shown, and only the data from the shown records.  You can tune
  6979. that up in various ways (layout 0 is every field, whether it is in other
  6980. layout(s) or not).
  6981.  
  6982.    --John
  6983.  
  6984. --
  6985. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6986. =========================================================================
  6987. Date:         Wed, 14 Sep 1994 06:08:05 +0200
  6988. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6989. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  6990. From:         Alain Mellan <mellan@ACRI.FR>
  6991. Subject:      Re: MACSCRPT Digest - 12 Sep 1994 to 13 Sep 1994
  6992. In-Reply-To:  <199409140409.GAA07540@acri.acri.fr>
  6993.  
  6994. Hi,
  6995.  
  6996. I received you mail, but I'm on vacation until October 3rd.
  6997.  
  6998. I will reply as soon as I come back.
  6999.  
  7000. Until then, have fun!
  7001.  
  7002. --
  7003. Alain Mellan
  7004. Advanced Computer Research Institute    fax:   +33  72.35.84.77
  7005. 1 Bvd Marius Vivier Merle             voice:   +33  72.35.84.92
  7006. 69443 LYON CEDEX 03 - FRANCE          email:    amellan@acri.fr
  7007. =========================================================================
  7008. Date:         Tue, 13 Sep 1994 21:17:41 -0800
  7009. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7010. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7011. From:         Preston Holmes <pholmes@UCSD.EDU>
  7012. Subject:      Clipboard -> Clipping
  7013.  
  7014.         Now that I have the Scriptalbe finder I am interested in exploring
  7015. the use of clippings.  Since many apps don't support Drag and Drop and
  7016. clippings, I thought it would be useful to have a script that converts
  7017. between the two.  I was hoping to do this with as few osaxen as possible
  7018. relying on the finder.  But it seems that there is NO way of doing it
  7019. without some as-yet-unwritten osax.
  7020.  
  7021.  The poorly syntaxed script below is only to give an idea of the concept
  7022. I'm shooting for:
  7023.  
  7024. tell application "Finder"
  7025.         make new file "clipping file" with data (the clipboard as string) with
  7026.                 properties {creator type:"drag",file type:"clpt"}
  7027. end tell
  7028.  
  7029. So anyone feel like writing the osax, or better yet telling me how I can do
  7030. this without one....
  7031.  
  7032. -Preston
  7033.  
  7034.  
  7035. --
  7036. Preston Holmes                  (h)619-453-9209
  7037. Dept. of Neuroscience, UCSD
  7038. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  7039. =========================================================================
  7040. Date:         Tue, 13 Sep 1994 21:21:56 -0800
  7041. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7042. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7043. From:         Preston Holmes <pholmes@UCSD.EDU>
  7044. Subject:      Re: MACSCRPT Digest - 12 Sep 1994 to 13 Sep 1994
  7045.  
  7046. >I received you mail, but I'm on vacation until October 3rd.
  7047.  
  7048. Looks like a badly written auto-reply script   ;-)
  7049.  
  7050. Hope we won't be hearing from him every day till then, I guess it is good
  7051. that he's getting the digest...
  7052.  
  7053. -Preston
  7054.  
  7055. --
  7056. Preston Holmes                  (h)619-453-9209
  7057. Dept. of Neuroscience, UCSD
  7058. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  7059. =========================================================================
  7060. Date:         Tue, 13 Sep 1994 23:47:24 -0700
  7061. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7062. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7063. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7064. Subject:      Re: Clipboard -> Clipping
  7065.  
  7066. >        Now that I have the Scriptalbe finder I am interested in exploring
  7067. >the use of clippings.  Since many apps don't support Drag and Drop and
  7068. >clippings, I thought it would be useful to have a script that converts
  7069. >between the two.  I was hoping to do this with as few osaxen as possible
  7070. >relying on the finder.  But it seems that there is NO way of doing it
  7071. >without some as-yet-unwritten osax.
  7072. >
  7073. > The poorly syntaxed script below is only to give an idea of the concept
  7074. >I'm shooting for:
  7075. >
  7076. >tell application "Finder"
  7077. >        make new file "clipping file" with data (the clipboard as string) with
  7078. >                properties {creator type:"drag",file type:"clpt"}
  7079. >end tell
  7080. >
  7081. >So anyone feel like writing the osax, or better yet telling me how I can do
  7082. >this without one....
  7083.  
  7084. Well, a clipping file has relatively few resources (one I just made with
  7085. plain text dragged out of the Scrapbook has two:  a 'drag' (4 bytes of
  7086. which read TEXT) and a TEXT with the text.  This is probably documented
  7087. somewhere...if not it's reverse-engineerable for at least common cases.  I
  7088. would attack it by writing the necessary file.  [I'd do it with Frontier,
  7089. which has all the necessary verbs built in, so I'm not sure what you would
  7090. use from AppleScript to write the resources.]
  7091.  
  7092.    --John
  7093.  
  7094. --
  7095. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7096. =========================================================================
  7097. Date:         Wed, 14 Sep 1994 07:01:02 EDT
  7098. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7099. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7100. From:         Israel Alvarez <Montressor@AOL.COM>
  7101. Subject:      FaceSpan & Window Resources
  7102.  
  7103. Question for all you FaceSpan experts out there:
  7104.  
  7105. I've been trying to integrate the saving of window resources for later recall
  7106. into a project of mine. I've been successful in saving the window resources,
  7107. but I can't figure out how to get a list of the names of window resources in
  7108. a project. None of the obvious commands work and the docs don't seem to
  7109. mention how this can be done. Any suggestions?
  7110.  
  7111. Thanks in advance,
  7112. Israel Alvarez
  7113. =========================================================================
  7114. Date:         Wed, 14 Sep 1994 09:17:55 -0500
  7115. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7116. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7117. From:         Terry Thiel <tthiel@PRAIRIENET.ORG>
  7118. Subject:      delete me.
  7119.  
  7120. I imagine this is going to everyone, sorry.  Please delete me from the script
  7121. digest and mailing lists.  Its too hard to get time to read it.  Hopefully
  7122. there will be a newsgroup soon.
  7123. -Terry
  7124. =========================================================================
  7125. Date:         Wed, 14 Sep 1994 08:07:00 -0700
  7126. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7127. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7128. From:         "Evad, Paul" <PEVAD@PUBAFFAIR.ENV.GOV.BC.CA>
  7129. Subject:      FileMaker, find records and speed
  7130.  
  7131. I've noticed a lot of Filemaker Pro discussion on the list, with some good
  7132. pointers that have helped me out. However one problem that I haven't seen
  7133. addressed is a speed factor. I'm dealing with a database with over 20,000
  7134. records, and the following core of my script application just runs too darn
  7135. slow. We timed the script vs. the regular FileMaker Find command and found
  7136. the script was about 10 times slower to respond. Has anyone else had a
  7137. similar problem?
  7138.  
  7139. Here is the core routine of the script:
  7140.  
  7141. on fetchname()
  7142.  tell application "FileMaker Pro"
  7143.   Show (Records of Database "Phone Directory" whose Cell "Name" of Layout 0
  7144. contains quername)
  7145.   set y to Count of Records
  7146.   if y is equal to 1 then
  7147.    copy Cell "Name" of Record cnt to namef
  7148.    copy Cell "Office Phone" of Record cnt to phonef
  7149.    copy Cell "Fax" of Record cnt to faxf
  7150.    copy Cell "Street Address" of Record cnt to addf
  7151.    display dialog namef & return & "Phone: " & phonef & return & "Fax: " &
  7152. faxf &
  7153.     return & "Address: " & addf buttons {"OK"} default button 1
  7154.    beginap()
  7155.   else
  7156.    display dialog "I found " & y &
  7157.     " records that match your request" buttons {"list all", "try again"}
  7158. default button 2
  7159.    set returnpar to result
  7160.    set buttonanswer to button returned of returnpar
  7161.    if buttonanswer = "list all" then
  7162.     listal()
  7163.    else
  7164.     beginap()
  7165.    end if
  7166.   end if
  7167.  end tell
  7168. end fetchname
  7169.  
  7170. I thought that maybe the Show every record query was the culprit for the
  7171. speed deficit, but I don't know of any other way to find and retrieve the
  7172. needed information.
  7173.  
  7174. Suggestions?
  7175.  
  7176. - Paul Evad
  7177. pevad@pubaffair.env.gov.bc.ca
  7178. =========================================================================
  7179. Date:         Wed, 14 Sep 1994 11:03:22 -0500
  7180. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7181. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7182. From:         Fred Terry <pfterry@LKS.CSI.COM>
  7183. Subject:      Re: delete me.
  7184. In-Reply-To:  Your message of "Wed, 14 Sep 94 09:17:55 CDT"
  7185.  
  7186. Terry,
  7187. >I imagine this is going to everyone, sorry.  Please delete me from the script
  7188. >digest and mailing lists.  Its too hard to get time to read it.  Hopefully
  7189. >there will be a newsgroup soon.
  7190.  
  7191. Send the unsub message to listserv@dartmouth.edu in the form
  7192.  
  7193. signoff macscrpt
  7194.  
  7195. Thanks.
  7196.  
  7197. pf
  7198. =========================================================================
  7199. Date:         Wed, 14 Sep 1994 12:58:57 -0400
  7200. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7201. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7202. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  7203. Subject:      Re: FileMaker, find records and speed
  7204. In-Reply-To:  <no.id> from "Evad, Paul" at Sep 14, 94 08:07:00 am
  7205.  
  7206. --Evad, Paul wrote:
  7207. >
  7208. >I've noticed a lot of Filemaker Pro discussion on the list, with some good
  7209. >pointers that have helped me out. However one problem that I haven't seen
  7210. >addressed is a speed factor. I'm dealing with a database with over 20,000
  7211. >records, and the following core of my script application just runs too darn
  7212. >slow. We timed the script vs. the regular FileMaker Find command and found
  7213. >the script was about 10 times slower to respond. Has anyone else had a
  7214. >similar problem?
  7215.  
  7216.     You must be new around here. We had the FM Pro finding speed
  7217. discussion on at least two occasions that I can think of, however,
  7218. niether of those has been in the last 3-4 months. The simplest solution
  7219. to your problem is to upgrade to FM Pro 2.1v3. It has a vastly improved
  7220. Show command than earlier versions...
  7221.  
  7222. -Hades
  7223. =========================================================================
  7224. Date:         Wed, 14 Sep 1994 14:13:18 EST
  7225. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7226. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7227. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  7228. Subject:      JPEGView, Startup screen, and !DeskPict
  7229.  
  7230. I'd like to be able to use JPEGView to open a graphic file and save the file as
  7231. a startup screen. Actually, I'm trying to make this startup screen work in
  7232. conjunction with the !DeskPict extension. From what I understand, !DeskPict
  7233. extension requires a PICT file with id of 0 (zero) in the system folder and the
  7234. file name of "DeskPicture" in order to work. I thought if I use JPEGView to open
  7235. an existing graphic file and save it into a startup screen format I would be OK.
  7236.  
  7237. Assuming the file I want to convert to a startup screen is sitting on my desktop
  7238. and is already named "DeskPicture", here's the script:
  7239.  
  7240. -----------------------------------------------------------------
  7241. tell application "JPEGView"
  7242.     set myPicture to alias "Mac HD:Desktop Folder:DeskPicture"
  7243.     activate
  7244.     open {myPicture} with type fixing and changing creators without visible
  7245.     save document 1 as startup screen with reduced colors without preview and
  7246. icons
  7247.     quit
  7248. end tell
  7249.  
  7250. --relocate is from GTQ library
  7251. relocate myPicture to alias (path to system folder as string)
  7252. -----------------------------------------------------------------
  7253.  
  7254. This seems to work fine but on restart, I'm getting a trashy looking screen. I
  7255. can also see a faint message displayed on the desktop saying I need Quicktime
  7256. and Photo-JPEG decompressor for it to work (I have QT 2.0). Am I missing the
  7257. point in what is needed in order for this file to work with !DesktPict? Has
  7258. anyone tried something similar? Am I doing something wrong with JPEGView? What's
  7259. with that ghostly message? Is it a conflict with the !DeskPict extension and
  7260. JPEGView or my system version (7.0.1)? Am I rambling? Am I making any sense? Is
  7261. there anybody out there?
  7262.  
  7263. -----------------------------------------------------------------
  7264. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  7265. AOL:        kimsont@aol.com
  7266. eWorld:     kimsontran@eworld.com
  7267.  
  7268. Once, I was a smoker. Now I'm just a hacker.
  7269. -----------------------------------------------------------------
  7270. =========================================================================
  7271. Date:         Wed, 14 Sep 1994 15:41:47 EDT
  7272. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7273. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7274. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  7275. Subject:      MS Monthly Harrange
  7276.  
  7277. Save this mail message. It includes all the e-mail addresses you need when
  7278. dealing with the Mac Scripting mailing list.
  7279.  
  7280. *** To Unsubscribe from this list:
  7281.  
  7282. Send to: LISTSERV@dartmouth.edu
  7283. Subject: unsubscribe
  7284. Message: signoff macscrpt
  7285.  
  7286.  
  7287. *** To subscribe to this list:
  7288.  
  7289. Send to: LISTSERV@dartmouth.edu
  7290. Subject: subscribe
  7291. Message: subscribe macscrpt <your full name here>
  7292.  
  7293.  
  7294. *** To receive the mail as daily digest:
  7295.  
  7296. Send to: LISTSERV@dartmouth.edu
  7297. Subject: digest
  7298. Message: set macscrpt digest
  7299.  
  7300.  
  7301. *** To get other info on using this automated system:
  7302.  
  7303. Send to: LISTSERV@dartmouth.edu
  7304. Subject: help
  7305. Message: help
  7306.  
  7307.  
  7308. *** To ask the human moderators a question:
  7309.  
  7310. Send to: MacScripting-Request@dartmouth.edu
  7311.  
  7312.  
  7313. *** To send a message to the mailing list:
  7314.  
  7315. Send to: MacScripting@dartmouth.edu
  7316.  
  7317.  
  7318. Thanks.
  7319.  
  7320. -The Moderators (a very offcial way of saying "Fred & Andy")
  7321. =========================================================================
  7322. Date:         Thu, 15 Sep 1994 08:43:00 +1200
  7323. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7324. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7325. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  7326.               NZ" <LDO@WAIKATO.AC.NZ>
  7327. Subject:      Re: JPEGView, Startup screen, and !DeskPict
  7328.  
  7329. Kim-son Tran <ktran@CC.ATINC.COM> writes:
  7330.  
  7331. >This seems to work fine but on restart, I'm getting a trashy looking screen. I
  7332. >can also see a faint message displayed on the desktop saying I need Quicktime
  7333. >and Photo-JPEG decompressor for it to work (I have QT 2.0).
  7334.  
  7335. That's an easy one: the PICT is QuickTime-JPEG-compressed, and DeskPict is
  7336. loading before QuickTime, hence the picture doesn't display properly. Two
  7337. solutions:
  7338.  
  7339. * Create a regular uncompressed PICT (not being familiar with JPEGView,
  7340. I'll leave the details of this as an exercise for the reader :-)).
  7341.  
  7342. * Make QuickTime load before DeskPict, by changing the name of one or the
  7343. other.
  7344.  
  7345. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7346. Info & Tech Services Division              fax: +64-7-838-4066
  7347. University of Waikato            electric mail: ldo@waikato.ac.nz
  7348. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  7349. =========================================================================
  7350. Date:         Wed, 14 Sep 1994 13:54:27 -0700
  7351. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7352. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7353. From:         "Glenn L. Austin" <glenn_a@EFN.ORG>
  7354. Subject:      Re: JPEGView, Startup screen, and !DeskPict
  7355.  
  7356. Kim-son Tran wrote:
  7357. >I'd like to be able to use JPEGView to open a graphic file and save the file as
  7358. >a startup screen. Actually, I'm trying to make this startup screen work in
  7359. >conjunction with the !DeskPict extension. From what I understand, !DeskPict
  7360. >extension requires a PICT file with id of 0 (zero) in the system folder and the
  7361. >file name of "DeskPicture" in order to work. I thought if I use JPEGView to
  7362. >open
  7363. >an existing graphic file and save it into a startup screen format I would be
  7364. >OK.
  7365.  
  7366. The problem is that !DeskPict is loading before QuickTime, so !DeskPict
  7367. isn't seeing any compression/decompression code that QuickTime provides.
  7368. Rename !DeskPict to load after QuickTime, or better yet, IMO, get something
  7369. like Now Fun which has a desktop picture utility, and doesn't actually do
  7370. anything with the picture until AFTER the Finder starts.  Simply use a
  7371. common picture name, and use your script to change the picture file itself.
  7372.  
  7373. //
  7374. // Glenn L. Austin
  7375. // Computer Wizard and Racing Car Driver
  7376. // Internet:  glenn_a@efn.org
  7377. //
  7378. =========================================================================
  7379. Date:         Thu, 15 Sep 1994 10:01:00 +1200
  7380. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7381. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7382. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  7383.               NZ" <LDO@WAIKATO.AC.NZ>
  7384. Subject:      FileMaker oddity
  7385.  
  7386. Speaking of FileMaker Pro, why do I get a syntax error trying to compile
  7387. this:
  7388.  
  7389.     tell database 1 of application "FileMaker Pro"
  7390.     end tell
  7391.  
  7392. while this:
  7393.  
  7394.     tell application "FileMaker Pro"
  7395.         tell Database 1
  7396.         end tell
  7397.     end tell
  7398.  
  7399. compiles OK?
  7400.  
  7401. It's true, the dictionary doesn't list "database" as one of the elements of
  7402. class "application". It does list "database" as an element of class "document".
  7403. But the following won't compile either:
  7404.  
  7405.     tell Database 1 of document 1 of application "FileMaker Pro"
  7406.     end tell
  7407.  
  7408. whereas this:
  7409.  
  7410.     tell document 1 of application "FileMaker Pro"
  7411.         tell Database 1
  7412.         end tell
  7413.     end tell
  7414.  
  7415. does.
  7416.  
  7417. In both cases, the "1" following the word "database" is highlighted, and
  7418. the error reported is "expected end of line but found number".
  7419.  
  7420. Remember, I'm not trying to _run_ any scripts, just _compile_ them. This means
  7421. the problem can't be in any FileMaker code, but in the dictionary, or possibly
  7422. in AppleScript 1.1 itself.
  7423.  
  7424. I'm using FileMaker Pro 2.1CDv1. I know the US version is up to 2.1v3, but
  7425. Claris are a little slow with their international updaters.
  7426.  
  7427. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7428. Info & Tech Services Division              fax: +64-7-838-4066
  7429. University of Waikato            electric mail: ldo@waikato.ac.nz
  7430. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  7431. =========================================================================
  7432. Date:         Wed, 14 Sep 1994 18:06:35 -0500
  7433. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7434. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7435. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  7436. Subject:      "Save As..." in Eudora?
  7437.  
  7438. Friends:
  7439.  
  7440.    Is it possible to script Eudora's "Save As..." (from the File menu,
  7441. version 1.4.3, though 1.5 beta would be okay)? I would like to set up a
  7442. script which saves my MACSCRIPT Digests to a specified folder, so that it
  7443. can be read using EasyView. The Eudora "Save" command doesn't seem to be
  7444. the same thing.
  7445.  
  7446.    Thanks for all the help!
  7447.    Clint
  7448.  
  7449.  
  7450.    Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  7451.    Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  7452.    Department of Molecular Biology | 609/258-5993
  7453.    Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  7454. =========================================================================
  7455. Date:         Wed, 14 Sep 1994 15:47:54 -0700
  7456. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7457. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7458. From:         Kevin Purcell <kevinpu@ATM.COM>
  7459. Subject:      Re: FileMaker oddity
  7460.  
  7461. >Speaking of FileMaker Pro, why do I get a syntax error trying to compile
  7462. >this:
  7463. >
  7464. >    tell database 1 of application "FileMaker Pro"
  7465. >    end tell
  7466. >
  7467. >while this:
  7468. >
  7469. >    tell application "FileMaker Pro"
  7470. >        tell Database 1
  7471. >        end tell
  7472. >    end tell
  7473. >
  7474. >compiles OK?
  7475.  
  7476. >Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7477.  
  7478.  
  7479. Synchronisity! This is not a FileMaker oddity but an AppleScript gotcha.
  7480.  
  7481. I have been having this problem with another in house app for the last
  7482. couple of days until a colleague pointed the answer out.
  7483.  
  7484. The problem is that AppleScript doesn't know about any of your apps special
  7485. terminology until it hits the
  7486.  
  7487.     application "FileMaker Pro"
  7488.  
  7489. in the tell block. Pretty dumb, but true. So AppleScript can't make hide
  7490. nor hair of
  7491.  
  7492.     tell database 1 of application "FileMaker Pro"
  7493.     end tell
  7494.  
  7495. but it does understand the following (because it knows where to look).
  7496.  
  7497.     tell application "FileMaker Pro"
  7498.         tell Database 1
  7499.         end tell
  7500.     end tell
  7501.  
  7502. AppleScript can understand
  7503.  
  7504.     tell document 1 of application "FileMaker Pro"
  7505.         tell Database 1
  7506.         end tell
  7507.     end tell
  7508.  
  7509. because the class document is defined in the standard suite. You can do
  7510. this with anything in the standard suite.
  7511.  
  7512. We are rapidly realising that tell blocks are not a panacea!
  7513.  
  7514. What really irks me about AppleScript is that its not very orthogonal.
  7515. There are lots of things you can do when sending events to applications
  7516. that can't be done when sending events to scripts (e.g. optional
  7517. parameters, elements, and so on).
  7518.  
  7519. That and the bane of my life, lame compile time checking.
  7520.  
  7521. Is Apple working on AppleScript 2.0?
  7522.  
  7523. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  7524. Attachmate Corp                   xenolith@halcyon.com
  7525. =========================================================================
  7526. Date:         Wed, 14 Sep 1994 16:00:52 -0800
  7527. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7528. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7529. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  7530. Subject:      Problem in Read/Write osax or me?
  7531.  
  7532. I'm getting an "Out of Memory" error when I'm attempting to read a file that
  7533. I created with the same script.
  7534.  
  7535. Here's what I'm doing:
  7536.  
  7537. First I create the file and write a list to the file using:
  7538.  
  7539. set refNum to open for access file (thePath & fileName) with write permission
  7540. write whoList to refNum
  7541. close access refNum
  7542.  
  7543. The format of "whoList" is a list of records with the fields:
  7544.  
  7545.     folderName:string
  7546.     account:string
  7547.  
  7548. There are only 12 entries in the list with about 30-40 bytes per record.
  7549.  
  7550.  
  7551. I then try to read the list later on by doing the following:
  7552.  
  7553. set refNum to open for access file ((DTSPrefFolder as string) & fileName)
  7554. set whoList to read refNum as list
  7555. close access refNum
  7556.  
  7557. The open returns a good refNum but I get an out of memory error when I hit
  7558. the read.
  7559.  
  7560. The odd thing is that this script works fine on my Centris 610 running System
  7561. 7.5b2 and AppleScript 1.1 but it fails on a PowerMac 6100/60 with System 7.5.
  7562. The one other difference I noted between the two machines is that the
  7563. Read/Write osax (is that right?) is version 1.1 on the Centris and 1.1.1 on
  7564. the PowerMac. Is there a difference between the two that could cause this
  7565. error.
  7566.  
  7567. Thanks for the help.
  7568.  
  7569. Greg Francis
  7570.  
  7571. --------------------------------------------------------------------------
  7572. Greg Francis                | STEP/Star Schools Project
  7573. Research and Development    | Educational Service District 101, Spokane WA
  7574. Technical Support Staff     | Bringing the best in K-12 distance education
  7575. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  7576. =========================================================================
  7577. Date:         Wed, 14 Sep 1994 19:09:31 -0400
  7578. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7579. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7580. From:         Kiran Wagle <groo@NETCOM.COM>
  7581. Subject:      Is 4D First scriptable?
  7582.  
  7583. AND, has anyone used it yet?
  7584.  
  7585. Thanks,
  7586.  
  7587. ~ Kiran
  7588.  
  7589. --
  7590. 1628 5th Street NW Washington DC 20001  202/483-3373 <groo@netcom.com>
  7591. =========================================================================
  7592. Date:         Wed, 14 Sep 1994 16:39:04 -0800
  7593. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7594. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7595. From:         Brian Hall <mspace@NETCOM.COM>
  7596. Subject:      Re: MACSCRPT Digest - 12 Sep 1994 to 13 Sep 1994
  7597.  
  7598. Are there any tools along the lines of FaceSpan that allow you to produce
  7599. double-clickable AppleScript applications with menus/dialogs/etc? (I've
  7600. already considered HyperCard 2.2, but the overhead is too high and I don't
  7601. like the feel of HyperCard generated apps).
  7602.  
  7603. I'd really like to use FaceSpan, but we need something soon.
  7604.  
  7605. __________________________________________________________________________
  7606. Mark/Space Softworks                                    voice 408-293-7299
  7607. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  7608. San Jose, CA 95113                                        bbs 408-293-7290
  7609.  
  7610. Macintosh connectivity software:               Internet: mspace@netcom.com
  7611. Communicate, ZMODEM Tool, PageNOW!               AppleLink, AOL: MARKSPACE
  7612.                   Goodies at ftp.netcom.com in pub/mspace
  7613. =========================================================================
  7614. Date:         Wed, 14 Sep 1994 20:01:18 -0500
  7615. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7616. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7617. From:         Joseph Goodman <jgoodma1@CC.SWARTHMORE.EDU>
  7618. Subject:      Scripting Eudora 2.0.3
  7619.  
  7620. I am trying to create a mailserver of sorts  for Eudora 2.0.3.
  7621. Unfortunately, I don't know how to read the *body* of a message. (I can get
  7622. the subject, to, and from fine). Can someone help me? Perhaps someone can
  7623. help me decipher the eudora dictionary (I am new to this) or tell me how to
  7624. do it....thanks.
  7625.  
  7626. --
  7627. Joseph Goodman
  7628. aka Hillbilly Bob=81
  7629. jgoodma1@cc.swarthmore.edu
  7630. Be true unto your flubba.
  7631. --
  7632. If you are using the random generator and need help, send a message with
  7633. HELP as its subject.
  7634. =========================================================================
  7635. Date:         Wed, 14 Sep 1994 20:54:03 U
  7636. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7637. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7638. From:         Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
  7639. Subject:      >>Is 4D First scriptable?
  7640.  
  7641.         Reply to:   >>Is 4D First scriptable?
  7642. >Is 4D First scriptable?
  7643. >AND, has anyone used it yet?
  7644.  
  7645.     One way or another, I bet it is...
  7646.     I am _just_starting_ to script 4D Server.  Our group has it up and
  7647. running with one tiny table to learn on.
  7648.     4D Server itself is not scriptable.  However, a companion application
  7649. called 4D AppleScript (which accompanies it) is.
  7650.     You're supposed to run both simulaneously.  You direct your AppleEvent
  7651. activity to 4D AppleScript and it interfaces with 4D Server.  Soft
  7652. documention is pretty good, but I'm just a beginner.
  7653.     This little arrangement of applications is not too unusual.  For
  7654. instance, QuickMail itself is not scriptable, but you can script QuickMail if
  7655. you are also running QuickAE application (from a third-part out of Dallas).
  7656. You direct your AE commands to QuickAE and it interfaces with QuickMail.
  7657.  
  7658.  
  7659. --Richard
  7660.  
  7661. ---------------------------------------------------------------------------
  7662. |   Motorola                                   rwvr90@email.sps.mot.com   |
  7663. |   OE110                                                                 |
  7664. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  7665. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  7666. ---------------------------------------------------------------------------
  7667. =========================================================================
  7668. Date:         Wed, 14 Sep 1994 23:18:33 -0500
  7669. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7670. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7671. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  7672. Subject:      Re: Scripting Eudora 2.0.3
  7673.  
  7674. At 8:01 PM 14.9.94, Joseph Goodman wrote:
  7675. >I am trying to create a mailserver of sorts  for Eudora 2.0.3.
  7676. >Unfortunately, I don't know how to read the *body* of a message. (I can get
  7677. >the subject, to, and from fine). Can someone help me? Perhaps someone can
  7678. >help me decipher the eudora dictionary (I am new to this) or tell me how to
  7679. >do it....thanks.
  7680.  
  7681. This works for me:
  7682.  
  7683. tell application "Eudora2.1"
  7684.         activate
  7685.         set bod to (body of the first message in mailbox "In" of mail folder "")
  7686.         return bod
  7687. end tell
  7688.  
  7689.  
  7690. That comes from 2.1 -- I can't say whether or not anything has changed
  7691. since 2.0.3... WAIT! I just read the README for 2.1...it says "Added
  7692. AppleScript 'body' message property..." You'll have to pick up the 2.1 beta
  7693. at ftp.qualcomm.com...
  7694.  
  7695. spud.
  7696.  
  7697.  
  7698. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7699. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  7700. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  7701. spud@access.digex.net ----------- WWW page:  http://www.digex.net/~spud
  7702.  
  7703.  
  7704. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  7705. =========================================================================
  7706. Date:         Thu, 15 Sep 1994 06:19:26 +0000
  7707. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7708. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7709. From:         Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
  7710. Subject:      [Q] Help needed re: deciphering descriptor records
  7711.  
  7712. Hi,
  7713.  
  7714. I'm writing an osax and so far things are moving on smoothly, except for
  7715. the problem below. I have a parameter that can be either an integer or a
  7716. list of exactly 4 strings, but nothing else. Therefore, I've set its type
  7717. to typeWildCard and it's up to the osax code to deal with the type
  7718. decoding.
  7719.  
  7720. In the osax code, I first try getting the descriptor record coerced to a
  7721. typeSMInt (short integer) and if that fails, I then try coercing to a
  7722. typeAEList. Both coercions work fine, given the proper input. My problem
  7723. begins when, after the descriptor record has been coerced to a list, I try
  7724. to coerce the result to a list of strings.
  7725.  
  7726. In the aete resource, I've defined a class with id cParamList = 'prmL'
  7727. whose only property is a list of class typeChar (strings) and id pParamList
  7728. = 'prml'. This class exists only to help the osax determine whether or not
  7729. the given list is a list of strings.
  7730.  
  7731. If I now try to coerce the descriptor list to a descriptor list of type
  7732. pParamList, the coercion fails, even if the input *is* a list of strings!
  7733. Out of desperation, I also tried coercing to a type cParamList, but that
  7734. fails too (but that, I think, is how it should be).
  7735.  
  7736. So, my question is: where am I screwing up?
  7737.  
  7738. I apologize if this is too technical a question to be posted here.
  7739. Thanks for any and all help.
  7740.  
  7741. Wagner Luiz Truppel                      WLT@MERCURIO.UC.PT
  7742.  
  7743.    *** I don't think. Therefore, I'm not sure I am. ***
  7744. ___________________________________________________________
  7745. =========================================================================
  7746. Date:         Thu, 15 Sep 1994 16:28:57 +1200
  7747. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7748. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7749. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  7750. Subject:      CopyFiles to server
  7751.  
  7752. I'm still operating with sys 7.1 and finderlib, and I'm having difficulties
  7753. copying files to a DataClub server. If the file is there already, AS comes
  7754. up with a message "Can't find "DataClub:Trash". Everytime you manually
  7755. delete a file off DataClub, it comes up with an alert saying it doesn't
  7756. have a Trash, and deletions are permanent.
  7757.  
  7758. Workarounds?
  7759.  
  7760. _________________________________________________________________________
  7761. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  7762. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  7763. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  7764. =========================================================================
  7765. Date:         Thu, 15 Sep 1994 01:26:28 -0500
  7766. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7767. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7768. From:         Random Number Generator <jgoodma1@CC.SWARTHMORE.EDU>
  7769. Subject:      RESULT OF RANDOM REQUEST ([Q] Help needed re: deciphering
  7770.               descriptor records): Couldn't understand your request.
  7771.  
  7772. >Hi,
  7773. >
  7774. >I'm writing an osax and so far things are moving on smoothly, except for
  7775. >the problem below. I have a parameter that can be either an integer or a
  7776. >list of exactly 4 strings, but nothing else. Therefore, I've set its type
  7777. >to typeWildCard and it's up to the osax code to deal with the type
  7778. >decoding.
  7779. >
  7780. >In the osax code, I first try getting the descriptor record coerced to a
  7781. >typeSMInt (short integer) and if that fails, I then try coercing to a
  7782. >typeAEList. Both coercions work fine, given the proper input. My problem
  7783. >begins when, after the descriptor record has been coerced to a list, I try
  7784. >to coerce the result to a list of strings.
  7785. >
  7786. >In the aete resource, I've defined a class with id cParamList =3D 'prmL'
  7787. >whose only property is a list of class typeChar (strings) and id pParamList
  7788. >=3D 'prml'. This class exists only to help the osax determine whether or no=
  7789. t
  7790. >the given list is a list of strings.
  7791. >
  7792. >If I now try to coerce the descriptor list to a descriptor list of type
  7793. >pParamList, the coercion fails, even if the input *is* a list of strings!
  7794. >Out of desperation, I also tried coercing to a type cParamList, but that
  7795. >fails too (but that, I think, is how it should be).
  7796. >
  7797. >So, my question is: where am I screwing up?
  7798. >
  7799. >I apologize if this is too technical a question to be posted here.
  7800. >Thanks for any and all help.
  7801. >
  7802. >Wagner Luiz Truppel                      WLT@MERCURIO.UC.PT
  7803. >
  7804. >   *** I don't think. Therefore, I'm not sure I am. ***
  7805. >___________________________________________________________
  7806.  
  7807. --
  7808. Joseph Goodman
  7809. aka Hillbilly Bob=81
  7810. jgoodma1@cc.swarthmore.edu
  7811. Be true unto your flubba.
  7812. =========================================================================
  7813. Date:         Thu, 15 Sep 1994 16:54:30 +1200
  7814. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7815. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7816. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  7817. Subject:      Re: >>Is 4D First scriptable?
  7818.  
  7819. >        Reply to:   >>Is 4D First scriptable?
  7820. >>Is 4D First scriptable?
  7821. >>AND, has anyone used it yet?
  7822.  
  7823. You should have a look at one of the AEVT externals packs (eg System7Pack
  7824. on bu.edu) as 4D is not AEVT-aware. I used it quite a lot with 4D 2.2.3,
  7825. and found it useful, but it's a lot of work doing the coding.
  7826.  
  7827. _________________________________________________________________________
  7828. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  7829. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  7830. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  7831. =========================================================================
  7832. Date:         Thu, 15 Sep 1994 00:51:05 -0500
  7833. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7834. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7835. From:         Sean Elfstrom <selfstro@CS.TRINITY.EDU>
  7836. Subject:      Re: Scripting Eudora 2.0.3
  7837. In-Reply-To:  <no.id> from "Joseph Goodman" at Sep 14, 94 08:01:18 pm
  7838.  
  7839. >
  7840. > I am trying to create a mailserver of sorts  for Eudora 2.0.3.
  7841. > Unfortunately, I don't know how to read the *body* of a message. (I can get
  7842. > the subject, to, and from fine). Can someone help me? Perhaps someone can
  7843. > help me decipher the eudora dictionary (I am new to this) or tell me how to
  7844. > do it....thanks.
  7845. >
  7846.  
  7847. I believe that field "" of a message will get you the body. (at least
  7848. it seems that's how I did it in Eudora 1.4.3...)
  7849.  
  7850. --
  7851. ---------------------------------------------------------------------
  7852. Sean Elfstrom                  | Trinity University
  7853. 10819 Auldine                  | selfstro@cs.trinity.edu
  7854. San Antonio, TX 78230          | http://www.cs.trinity.edu/~selfstro/
  7855. (210) 341-4624                 | PGP Key available via finger
  7856. =========================================================================
  7857. Date:         Thu, 15 Sep 1994 00:19:05 -0700
  7858. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7859. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7860. From:         Jon Pugh <jonpugh@NETCOM.COM>
  7861. Subject:      Re: JPEGView, Startup screen, and !DeskPict
  7862.  
  7863. Glenn L. Austin <glenn_a@EFN.ORG> wrote:
  7864. >
  7865. >... better yet, IMO, get something like Now Fun which has a desktop picture
  7866. >utility, and doesn't actually do anything with the picture until AFTER the
  7867. >Finder starts.  Simply use a common picture name, and use your script to
  7868. >change the picture file itself.
  7869.  
  7870. A better thing that I found is D=E9cor.  There's a brand new version that is
  7871. scriptable.  You can change pictures and behavior with scripts.  Drag and
  7872. drop to change the background screen!  D=E9cor is $5 shareware from Fran=E7o=
  7873. is
  7874. Pottier <pottier@clipper.ens.fr> and available at all fine archives.
  7875.  
  7876. Jon
  7877. =========================================================================
  7878. Date:         Thu, 15 Sep 1994 05:45:23 EDT
  7879. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7880. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7881. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  7882. Subject:      Re: CopyFiles to server
  7883.  
  7884. I had the same problem, "Can't find "DataClub:Trash".
  7885.  
  7886. My solution was to develop a script to go into the server volumn and delete
  7887. all the old backup files a few minutes before copying the new backup into it.
  7888.  
  7889. Why a few minutes?  Well it takes a bit for the server volumn to "digest" the
  7890. trashed files.
  7891. =========================================================================
  7892. Date:         Thu, 15 Sep 1994 06:02:23 -0400
  7893. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7894. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7895. From:         Kiran Wagle <groo@NETCOM.COM>
  7896. Subject:      Re: Scripting Eudora 2.0.3
  7897.  
  7898. > That comes from 2.1 -- I can't say whether or not anything has changed
  7899. > since 2.0.3... WAIT! I just read the README for 2.1...it says "Added
  7900. > AppleScript 'body' message property..." You'll have to pick up the 2.1 beta
  7901. > at ftp.qualcomm.com...
  7902.  
  7903. 2.1 has been released, far as I know.  I haven't actually looked (a phrase
  7904. I've been using a lot in the past few minutes <grin>) but I received an
  7905. announcement of its availability.
  7906.  
  7907. I think that field "" is the body in 2.0.x, and may be so in 2.1.
  7908. I've never scripted anything BUT 2.1  <grin>
  7909.  
  7910. ~ Kiran
  7911.  
  7912. --
  7913. 1628 5th Street NW Washington DC 20001  202/483-3373 <groo@netcom.com>
  7914. =========================================================================
  7915. Date:         Thu, 15 Sep 1994 12:34:50 GMT
  7916. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7917. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7918. From:         Gateway <Gateway@OUI.COM>
  7919. Organization: Odyssey Ultraware Inc.
  7920. Subject:      NDN: MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
  7921.  
  7922. Sorry. Your message could not be delivered to:
  7923.  
  7924. musikTypes,UltraLink (The name was not found at the remote site. Check that
  7925. the name has been entered correctly.)
  7926. =========================================================================
  7927. Date:         Thu, 15 Sep 1994 14:16:42 +0100
  7928. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7929. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7930. From:         Tony McDonald <Tony.McDonald@NEWCASTLE.AC.UK>
  7931. Subject:      Eudora 2.1 and notifying applications...
  7932.  
  7933. Hi,
  7934. Can someone help me out here? I have Eudora 2.1 (a truly *excellent*
  7935. program!), AppleScript 1.1 and the Eudora Announcer 1.0 application (with
  7936. the Eudora notify osax).
  7937.  
  7938. Try as I might, I can't get it to work.
  7939.  
  7940. I send the following to Eudora
  7941.  
  7942. tell application "Eudora"
  7943.         start notifying alias "Pandora:Tony's Announcer" when mail arrives
  7944. end tell
  7945.  
  7946. The applet "Tony's Announcer" is
  7947.  
  7948. on notice(theMessages)
  7949.         display dialog "Yes, you have new messages..."
  7950. end notice
  7951.  
  7952.  
  7953. please note that this is *not* the full Eudora Announcer 1.0 - just a stub
  7954. so's I can tell something is happening. The applet "Tony's Announcer" is
  7955. saved as an application with Stay open and never show startup screen
  7956. checked.
  7957.  
  7958. If the applet is not running and Eudora gets some new mail, it launches the
  7959. applet and....nothing.
  7960.  
  7961. The dictionary entry for notice in Eudora 2.1 is
  7962. notice: Eudora sends this event to notify an application that something happened
  7963. notice
  7964.         [occurrence mail arrives/mail sent/will connect/has connected] --
  7965. what happened
  7966.         [messages list] -- of the messages involved
  7967.  
  7968. Is there something wrong with my applet syntax? (ie I don't mention
  7969. 'occurrence' anywhere). The Eudora notify osax only has an entry for
  7970. 'notify',not 'notice' by the way.
  7971.  
  7972. Thanks in advance for any help people might be able to give.
  7973. Tone
  7974.  
  7975. -----------------------------------------------  Tony.McDonald@newcastle.ac.uk
  7976. Dr Tony McDonald, Apple Systems Advisor,Computing Service,Newcastle University
  7977. Newcastle Upon Tyne, NE1 7RU.      Tel: +44 91 222 8571   Fax: +44 91 222 8765
  7978. http://launchy.ncl.ac.uk/Default.html       Using Eudora 2.1fc2-9.94
  7979. =========================================================================
  7980. Date:         Thu, 15 Sep 1994 07:05:52 -0800
  7981. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7982. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  7983. From:         Kirk Stork <kastork@NPS.NAVY.MIL>
  7984. Subject:      Rifling a Eudora 1.4.3 Mailbox
  7985.  
  7986. I need to go through a mailbox and extract information to put in a
  7987. database.  I have this little hack that uses iostream in c++, that works,
  7988. but I was thinking...could a script be set up to do this.  If it was a
  7989. script it could continually watch my inbox and process files with the right
  7990. subject line...
  7991.  
  7992. The program reads a line, looks for a keyword, if it finds the keyword it
  7993. starts processing lines, one field per line until it sees another keyword.
  7994.  
  7995. I've never written a script, so I don't know the capabilities.  By the way,
  7996. is there a FAQ for this list?
  7997. .
  7998. .
  7999. .
  8000. // this is in  a loop
  8001.  
  8002.         ifs.getline (buf, 128, '\n');
  8003.         i =ifs.rdstate();
  8004.         if ( i & ios::goodbit) break;
  8005.         if (( !strcmp ( buf, EORKey))    {
  8006.                 inputState = 0;
  8007.                 ofs << '\n';
  8008.                 }
  8009.         if ( inputState )       {
  8010.                 ofs << buf << '\t';
  8011.                 }
  8012.         if (( !strcmp ( buf, borKey))    {
  8013.                 inputState = 1;
  8014.                 }
  8015. .
  8016. .
  8017. .
  8018.  
  8019. Thanks in advance for any suggestions/comments.
  8020.  
  8021.    Kirk Stork
  8022. kastork@nps.navy.mil
  8023. =========================================================================
  8024. Date:         Thu, 15 Sep 1994 10:38:16 +0000
  8025. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8026. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8027. From:         Gib Veconi <Gib_Veconi@SCP.COM>
  8028. Subject:      RE> MACSCRPT Digest - 13 SI
  8029.  
  8030. Strictly speaking, no, 4D First is not scriptable.
  8031.  
  8032. Another person on this list mentioned 4D AppleScript. 4D AppleScript is
  8033. middleware which can be used to talk to a 4D Server app using AppleScript.
  8034. Although it is very powerful and fairly straightforward to use, its
  8035. functionality is limited to operations on the data tables. You can't script
  8036. actions of the 4D program.
  8037.  
  8038.  ------ From: Macintosh Scripting Systems, Thu, Sep 15, 1994 ------
  8039.  
  8040. Date:    Wed, 14 Sep 1994 19:09:31 -0400
  8041. From:    Kiran Wagle <groo@NETCOM.COM>
  8042. Subject: Is 4D First scriptable?
  8043.  
  8044. AND, has anyone used it yet?
  8045.  
  8046. Thanks,
  8047.  
  8048. ~ Kiran
  8049.  
  8050.  
  8051. ______________________________________________________________________________
  8052.  
  8053.      _______    _______   ________
  8054.     |  _____\  |  _____\ |\  _____ \   Gib Veconi
  8055.     |\ \____|  |\ \____| \ \ \____\ \   System Analyst
  8056.     \ \_____ \ \ \ \      \ \  _____/    SCP Communications, Inc.
  8057.      \|_____\ \ \ \ \____  \ \ \____/     134 West 29th Street
  8058.       |\______/  \ \______\ \ \_\          New York, NY 10001
  8059.       \|______/   \|______|  \|_|                                  gib@scp.com
  8060.  
  8061. ______________________________________________________________________________
  8062. =========================================================================
  8063. Date:         Thu, 15 Sep 1994 18:12:42 +0100
  8064. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8065. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8066. From:         Angus McIntyre <angus@AEGYPT.DEMON.CO.UK>
  8067. Subject:      Re: JPEGView, Startup screen, and !DeskPict
  8068.  
  8069. At 8:13 PM 14.09.94, Kim-son Tran wrote:
  8070. >... I thought if I use JPEGView to open an existing graphic file and save it
  8071. >into a startup screen format I would be OK ... on restart, I'm getting a
  8072. >trashy
  8073. >looking screen. I can also see a faint message displayed on the desktop saying
  8074. >I need Quicktime and Photo-JPEG decompressor for it to work (I have QT 2.0).
  8075.  
  8076. I would suspect that the problem is that at the time the picture is read by
  8077. !DeskPict, QuickTime isn't yet loaded. !DeskPict gets loaded first, and
  8078. QuickTime is nowhere around when it tries to set up the background picture
  8079. for use. The System tries to make sense of what appears to be a PICT, but
  8080. without QuickTime to tell it how to interpret the picture, all it can get
  8081. is junk, plus the "You need QuickTime message" which was automatically
  8082. saved with the picture when it was created (when QuickTime *was*
  8083. available). Hence the mess.
  8084.  
  8085. That would be my best guess at what's happening. I remember something
  8086. similar back in the bad old days before System 7, when I had a startup
  8087. screen that used TrueType fonts. TrueType was then an extension, and
  8088. because the startup screen was displayed before TrueType loaded, the
  8089. TrueType fonts came out as scaled-up bitmaps.
  8090.  
  8091. The solution is to find a way to save the startup screen resource as a
  8092. 'vanilla' picture, without using JPEG/PhotoCD compression. I would guess
  8093. that what JPEGView is doing is simply saving the picture as a resource
  8094. without checking to see what format the original is in - I doubt that the
  8095. author would have written it to apply QuickTime compression to a startup
  8096. screen, knowing that QuickTime mostly won't be available at the point at
  8097. which startup screens are typically displayed. If this is correct, then the
  8098. problem simply becomes one of figuring out a way of handing JPEGView a
  8099. standard, old-style, uncompressed PICT, rather than whatever weird flavour
  8100. you're currently giving it.
  8101.  
  8102. Does that help?
  8103.  
  8104.                         A
  8105.  
  8106.  
  8107. x---------------------------------------+------------------------------------x
  8108. | And even madmen manage to convey.     |      angus@aegypt.demon.co.uk      |
  8109. | Unwelcome truths in lonely gibberish. |------------------------------------|
  8110. | ["The Useful", W.H. Auden]            | http://www.tardis.ed.ac.uk/~angus/ |
  8111. x---------------------------------------+------------------------------------x
  8112. =========================================================================
  8113. Date:         Thu, 15 Sep 1994 14:03:29 -0500
  8114. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8115. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8116. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  8117. Subject:      Re: Eudora 2.1 and notifying applications...
  8118.  
  8119. At 8:16 AM 15.9.94, Tony McDonald wrote:
  8120. >please note that this is *not* the full Eudora Announcer 1.0 - just a stub
  8121. >so's I can tell something is happening. The applet "Tony's Announcer" is
  8122. >saved as an application with Stay open and never show startup screen
  8123. >checked.
  8124. >
  8125. >If the applet is not running and Eudora gets some new mail, it launches the
  8126. >applet and....nothing.
  8127.  
  8128. Tony --
  8129.  
  8130. I'm with you...I've had no luck at all with Announcer 1.0, nor with any
  8131. "test" script (I did like you did, and wrote a very simple test to see if
  8132. it was receiving any notice...I got a launch, then nothing). And the
  8133. "Eudora Notify Controller" hasn't worked for me either. It seems to turn
  8134. notification "on" for certain apps, but I can't get it to turn it back off.
  8135. Both "E.N.C." and the Announcer seem to be working directly with
  8136. AppleEvents, rather than relying on the Eudora Suite of the AppleScript
  8137. code...I don't know why. Help, anyone?
  8138. Has anyone talked to Steve Dorner about this?
  8139.  
  8140. spud.
  8141.  
  8142.  
  8143. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8144. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  8145. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  8146. spud@access.digex.net ----------- WWW page:  http://www.digex.net/~spud
  8147.  
  8148.  
  8149. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  8150. =========================================================================
  8151. Date:         Mon, 12 Sep 1994 21:12:31 -0400
  8152. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8153. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8154. From:         Jeff Boulter <boulter@BUCKNELL.EDU>
  8155. Subject:      PageMaker fakes it's clipboard?
  8156. In-Reply-To:  <9409130022.AA12617@reef.bucknell.edu>
  8157.  
  8158. I'm doing some AppleScript scripting with PageMaker, and I've noticed a
  8159. problem with copying text from PageMaker. It seems that PageMaker
  8160. maintains an internal clipboard file and hashes this clipboard out to the
  8161. system clipboard when another application is moved to the front.
  8162.  
  8163. I haven't been able to figure out a workaround for this problem. PageMaker
  8164. is the only application I'm using in the script, so sending it to the
  8165. background isn't an option.
  8166.  
  8167. Anybody else have experiences, suggestions, or condolences to share?
  8168.  
  8169. Thanks,
  8170.  
  8171. Jeff Boulter
  8172.  
  8173.  
  8174.  
  8175. --
  8176. Jeff Boulter    boulter@bucknell.edu  http://www.bucknell.edu/bucknellian/jeff
  8177. =========================================================================
  8178. Date:         Thu, 15 Sep 1994 16:03:29 -0500
  8179. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8180. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8181. From:         Joseph Goodman <jgoodma1@CC.SWARTHMORE.EDU>
  8182. Subject:      What can I do with something of class TEXT?
  8183.  
  8184. I am trying to manipulate something of type TEXT to look for certain
  8185. keywords. The keywords will be an entire line, and the text I need to
  8186. extract will be an entire line. Can anyone suggest an easy way to do this?
  8187. I am kind of new to AS and can't seem to get any sort of "contents of line
  8188. x" function to work on a TEXT block....
  8189.  
  8190. --
  8191. Joseph Goodman
  8192. aka Hillbilly Bob=81
  8193. jgoodma1@cc.swarthmore.edu
  8194. Be true unto your flubba.
  8195. =========================================================================
  8196. Date:         Thu, 15 Sep 1994 16:25:05 -0500
  8197. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8198. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8199. From:         David Myers <myers@ACEC.COM>
  8200. Subject:      Scripting SITcomm to generate VT220 function keys
  8201.  
  8202. The following Frontier two-liner was intended to make SITcomm generate
  8203. the VT220 F8 function key, defined as ESC-O-l:
  8204.  
  8205. escapeString = char(27) + 'O' + 'l'
  8206. SITcomm.sendText(escapeString)
  8207.  
  8208. When the sendText call executes, SITcomm beeps and evidently doesn't
  8209. send the command string.  Shouldn't it?  I was knee-deep in VT220
  8210. set-up commands at the time, so I may have screwed something else up...
  8211.  
  8212. Thanks.
  8213.  
  8214. -David.
  8215.  
  8216. ____________________________________________________
  8217.  
  8218. David C. Myers
  8219. myers@acec.com
  8220. =========================================================================
  8221. Date:         Thu, 15 Sep 1994 14:24:33 -0800
  8222. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8223. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8224. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  8225. Subject:      Re: PageMaker fakes it's clipboard?
  8226.  
  8227. Jeff said:
  8228. > I'm doing some AppleScript scripting with PageMaker, and I've noticed
  8229. > a problem with copying text from PageMaker. It seems that
  8230. > PageMaker maintains an internal clipboard file and hashes this
  8231. > clipboard out to the system clipboard when another application is moved
  8232. > to the front.
  8233. >
  8234. > I haven't been able to figure out a workaround for this problem.
  8235. > PageMaker is the only application I'm using in the script, so sending
  8236. > it to the background isn't an option.
  8237.  
  8238. Why not? You could switch between 'activate pagemaker' and 'activate me',
  8239. since you're guaranteed to at least have your script's application running ...
  8240.  
  8241. -roy
  8242. =========================================================================
  8243. Date:         Thu, 15 Sep 1994 16:26:16 -0500
  8244. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8245. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8246. From:         Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
  8247. Subject:      MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
  8248.  
  8249. kevin Purcell writes:
  8250.  
  8251. What really irks me about AppleScript is that its not very orthogonal.
  8252. There are lots of things you can do when sending events to
  8253. applications that can't be done when sending events to scripts
  8254. (e.g. optional parameters, elements, and so on).
  8255. --
  8256. This bugs me too. If I have a script, a normal script, with say, some
  8257. subroutine like this:
  8258.  
  8259. on sayHello (userName)
  8260. display dialog "Hi, " & userName
  8261. end sayHello
  8262.  
  8263. and call the complied script "hey", i can't get a tell script or run
  8264. script command in another different script to make it do its thing.
  8265. You know, something like a  :
  8266.  tell "hey"
  8267. sayHello ("Bob")
  8268. end tell
  8269.  
  8270. Does anyone know the correct syntax for telling a complied script how
  8271. to execute one of its subroutines with a given parameter from another
  8272. script? I could save them all as applets, and do a lot of tell
  8273. application whatevers, i guess, but that would open up all the memory
  8274. leakage dangers, and i want to try this script library thing anyway, I
  8275. know it's possible, I'm just kind of stumped...
  8276.  
  8277. Can anyone help me out here? I can send you a jazzy script for
  8278. payment, if you want...
  8279.  
  8280. Jason
  8281.  
  8282. --
  8283. Are you trying to say waffles are       |      Jason Frankovitz
  8284. diuretics, or that consuming diuretics  |      Bloomington, IN
  8285. makes you waffle?                       |      jfrankov@indiana.edu
  8286. =========================================================================
  8287. Date:         Thu, 15 Sep 1994 16:35:44 -0600
  8288. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8289. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8290. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  8291. Subject:      Quicktime and AppleScript
  8292.  
  8293. Quick question.
  8294.  
  8295. Does or does not AppleScript require Quicktime (in some fashion).
  8296. I will stop at this point in order to save myself from further humiliation :(
  8297.  
  8298. Frank C.
  8299. R&E
  8300. =========================================================================
  8301. Date:         Thu, 15 Sep 1994 17:41:46 -0500
  8302. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8303. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8304. From:         Jay Thomas <jthomas@PLUTO.NJCC.COM>
  8305. Subject:      Re: How to set a FileMaker Pro field to text >1 line
  8306.  
  8307. >
  8308. >Failing that has anyone got any SMTP based receiving E-mail programs that
  8309. >are scriptable. Eudora only sends by SMTP.
  8310. >
  8311.  
  8312. Get SMTP server s/w like mail share thats compatible with Eudora
  8313.  
  8314. >At present I'm hoping to step through all my e-mail messages as text files
  8315. >extracting each field and inserting it into Eudora or FileMaker Pro so that
  8316. >it takes up less room and is searchable. At present I'm using LeeMail 2.0.4
  8317. >which has no find or scripting support.
  8318.  
  8319.  
  8320. Eudora does searching too...
  8321.  
  8322. >Any other real world samples would be appreciated if they're small.
  8323. >
  8324. >Many thanks, Neil.
  8325. >P.S has anyone seen QuickTime 2.0 for ftping I hear it's on some BBSs.
  8326.  
  8327. Its on ftp.rasterops.com. Its part of the video vision upgrade package.
  8328. =========================================================================
  8329. Date:         Thu, 15 Sep 1994 14:44:55 -0700
  8330. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8331. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8332. From:         Alec Plumb <aplumb@UCSD.EDU>
  8333. Subject:      Re: Eudora 2.1 and notifying applications...
  8334.  
  8335. >At 8:16 AM 15.9.94, Tony McDonald wrote:
  8336. >>please note that this is *not* the full Eudora Announcer 1.0 - just a stub
  8337. >>so's I can tell something is happening. The applet "Tony's Announcer" is
  8338. >>saved as an application with Stay open and never show startup screen
  8339. >>checked.
  8340. >>
  8341. >>If the applet is not running and Eudora gets some new mail, it launches the
  8342. >>applet and....nothing.
  8343. >
  8344. >Tony --
  8345.  
  8346. I had to fiddle with the Eudora Notify controller to get it to work.  When
  8347. Eudora gets the start notifying event, it seems to require that the
  8348. argument be of type application.  so if fname is a string, the command
  8349. should read something like:
  8350.  
  8351. tell application "Eudora2.1" to start notifying application fname when mail
  8352. arrives
  8353.  
  8354. However, the stop notifying event seems to require that the argument be a
  8355. string, so that the command should read something like this:
  8356.  
  8357. tell application "Eudora2.1" to stop notifying fname when mail arrives
  8358.  
  8359. Once I made these modifications, the following handler application (using
  8360. the Eudora Notification OSAX) seemed to work just fine:
  8361.  
  8362. on notify messagelist
  8363.         beep
  8364.         display dialog "notify recieved"
  8365. end notify
  8366.  
  8367. Alec Plumb        \\  W:619/534-8166  \\
  8368. Macintosh Support  \\  H:619/294-2112  \\
  8369. IGPP \\ SIO \\ UCSD \\  aplumb@ucsd.edu \\
  8370. =========================================================================
  8371. Date:         Thu, 15 Sep 1994 14:48:51 -0800
  8372. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8373. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8374. From:         Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
  8375. Subject:      Re: Quicktime and AppleScript
  8376.  
  8377. >Does or does not AppleScript require Quicktime (in some fashion).
  8378. >I will stop at this point in order to save myself from further humiliation :(
  8379.  
  8380. AppleScript does not require QuickTime.
  8381.  
  8382. Kee Nethery
  8383. =========================================================================
  8384. Date:         Thu, 15 Sep 1994 19:05:44 -0500
  8385. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8386. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8387. From:         Jay Thomas <jthomas@PLUTO.NJCC.COM>
  8388. Subject:      Re: Quicktime and AppleScript
  8389.  
  8390. >>Does or does not AppleScript require Quicktime (in some fashion).
  8391. >>I will stop at this point in order to save myself from further humiliation :(
  8392. >
  8393. >AppleScript does not require QuickTime.
  8394. >
  8395. >Kee Nethery
  8396.  
  8397.  
  8398. I'm 97% sure it does IF you don't thave System 7.1. I assume it uses the
  8399. component manager, present in QT or Sys 7.1+
  8400. =========================================================================
  8401. Date:         Thu, 15 Sep 1994 16:14:31 -0700
  8402. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8403. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8404. From:         Kevin Purcell <kevinpu@ATM.COM>
  8405. Subject:      Re: Quicktime and AppleScript
  8406.  
  8407. >>Does or does not AppleScript require Quicktime (in some fashion).
  8408. >>I will stop at this point in order to save myself from further humiliation :(
  8409. >
  8410. >AppleScript does not require QuickTime.
  8411. >
  8412. >Kee Nethery
  8413.  
  8414. This is true if the Component Manager is provided by some part other of the
  8415. system.
  8416.  
  8417. In particular systems (with early versions of system 7?) AS required QT to
  8418. run (because AS used the Component Manager and QT contained the Component
  8419. Manager). QT included the Component Manager because it needed it before it
  8420. was widley availible in standard systems.
  8421.  
  8422.  
  8423. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  8424. Attachmate Corp                   xenolith@halcyon.com
  8425. =========================================================================
  8426. Date:         Thu, 15 Sep 1994 19:49:05 -0500
  8427. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8428. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8429. From:         Joseph Goodman <jgoodma1@CC.SWARTHMORE.EDU>
  8430. Subject:      Is there a way to tell if a program is running?
  8431.  
  8432. Is there a way in AppleScript to tell if a program is running already? Or
  8433. must I activate it every time to make sure?
  8434.  
  8435. --
  8436. Joseph Goodman
  8437. aka Hillbilly Bob=81
  8438. jgoodma1@cc.swarthmore.edu
  8439. Be true unto your flubba.
  8440. =========================================================================
  8441. Date:         Thu, 15 Sep 1994 17:26:01 -0700
  8442. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8443. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8444. From:         Kevin Purcell <kevinpu@ATM.COM>
  8445. Subject:      Re: MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
  8446.  
  8447. >This bugs me too. If I have a script, a normal script, with say, some
  8448. >subroutine like this:
  8449. >
  8450. >on sayHello (userName)
  8451. >display dialog "Hi, " & userName
  8452. >end sayHello
  8453. >
  8454. >and call the complied script "hey", i can't get a tell script or run
  8455. >script command in another different script to make it do its thing.
  8456. >You know, something like a  :
  8457. > tell "hey"
  8458. >sayHello ("Bob")
  8459. >end tell
  8460. >
  8461. >Does anyone know the correct syntax for telling a complied script how
  8462. >to execute one of its subroutines with a given parameter from another
  8463. >script? I could save them all as applets, and do a lot of tell
  8464. >application whatevers, i guess, but that would open up all the memory
  8465. >leakage dangers, and i want to try this script library thing anyway, I
  8466. >know it's possible, I'm just kind of stumped...
  8467.  
  8468. Thats exactly what you do!
  8469.  
  8470. Save it as an applet and
  8471.  
  8472. tell app "hey"
  8473.         sayHello ("Bob")
  8474. end tell
  8475.  
  8476. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  8477. Attachmate Corp                   xenolith@halcyon.com
  8478. =========================================================================
  8479. Date:         Thu, 15 Sep 1994 17:52:10 PDT
  8480. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8481. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8482. From:         Joe Scripter <MikeL@EWORLD.COM>
  8483. Subject:      Localtalk to Ethernet Script
  8484.  
  8485. I'm trying to write a script to switch my powerbook 540c from localtalk to
  8486. ethernet. I've tried simply recording the action but all AppleScript does is
  8487. open the network control panel for me and then close it again. It ignores my
  8488. clicks to switch from ethernet to localtalk or vise versa. Any ideas?
  8489.  
  8490. Thanks
  8491.  
  8492. -MJL
  8493. =========================================================================
  8494. Date:         Thu, 15 Sep 1994 21:01:00 -0800
  8495. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8496. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8497. From:         Preston Holmes <pholmes@UCSD.EDU>
  8498. Subject:      loading script objects and mem problems
  8499.  
  8500. >>Does anyone know the correct syntax for telling a complied script how
  8501. >>to execute one of its subroutines with a given parameter from another
  8502. >>script? I could save them all as applets, and do a lot of tell
  8503. >>application whatevers, i guess, but that would open up all the memory
  8504. >>leakage dangers, and i want to try this script library thing anyway, I
  8505. >>know it's possible, I'm just kind of stumped...
  8506. >
  8507. >Thats exactly what you do!
  8508. >
  8509. >Save it as an applet and
  8510. >
  8511. >tell app "hey"
  8512. >        sayHello ("Bob")
  8513. >end tell
  8514.  
  8515. Or you could load a compiled script and use the tell command to talk to a
  8516. variable that is the result of the load script command:
  8517.  
  8518.  
  8519. set SomeScript to (load script (*alias to your script*))
  8520.  
  8521. tell SomeScript
  8522.         sayHello("bob")
  8523. end tell
  8524.  
  8525. --and/or
  8526.  
  8527. set SomeProp of SomeScript to "this string"
  8528.  
  8529. Now I have a question:
  8530.  
  8531. "but that would open up all the memory
  8532. >>leakage dangers,"
  8533.  
  8534. What are these dangers, I haven't heard of them, and I'm having real
  8535. problems with a script app quiting with an error of type 1 or an out of
  8536. memory -108 error.  I can't figure it out script wise.  The problem might
  8537. be is that I'm loading a rather large (35K) library, is this my problem -
  8538. will I have to split this into a smaller libraries for their specific uses.
  8539.  
  8540.  
  8541. I guess that was more than one question but there all related ;-)
  8542.  
  8543. -Preston
  8544.  
  8545.  
  8546. --
  8547. Preston Holmes                  (h)619-453-9209
  8548. Dept. of Neuroscience, UCSD
  8549. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  8550. =========================================================================
  8551. Date:         Thu, 15 Sep 1994 21:13:46 -0800
  8552. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8553. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8554. From:         Preston Holmes <pholmes@UCSD.EDU>
  8555. Subject:      Re: Is there a way to tell if a program is running?
  8556.  
  8557. >Is there a way in AppleScript to tell if a program is running already? Or
  8558. >must I activate it every time to make sure?
  8559.  
  8560. This depends if you mean running or frontmost.  If you just want to check
  8561. if its running you can use the scriptable finder if you have it or the
  8562. processes osax of Script Tools which provides the command:
  8563.  
  8564.  
  8565. list processes: get a list of the running applications
  8566.         list processes
  8567.         Result:   list  -- list of running applications
  8568.  
  8569. So it should just be a matter of:
  8570.  
  8571. if (list processes) contains "TargetApp" then
  8572. --statements here
  8573. else
  8574. --open it??
  8575. end if
  8576.  
  8577. If you wanted to make sure it was in the foreground then (from the same osax):
  8578.  
  8579. if (get foreground process) does not equal "TargetApp" then
  8580. tell application "TargetApp" to activate
  8581. end if
  8582.  
  8583.  
  8584. Hasta,
  8585.  
  8586. -Preston
  8587.  
  8588.  
  8589.  
  8590. --
  8591. Preston Holmes                  (h)619-453-9209
  8592. Dept. of Neuroscience, UCSD
  8593. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  8594. =========================================================================
  8595. Date:         Thu, 15 Sep 1994 21:28:05 -0800
  8596. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8597. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8598. From:         Preston Holmes <pholmes@UCSD.EDU>
  8599. Subject:      Re: Localtalk to Ethernet Script
  8600.  
  8601. >I'm trying to write a script to switch my powerbook 540c from localtalk to
  8602. >ethernet. I've tried simply recording the action but all AppleScript does is
  8603. >open the network control panel for me and then close it again. It ignores my
  8604. >clicks to switch from ethernet to localtalk or vise versa. Any ideas?
  8605.  
  8606. I'm pretty sure that most control panels are not recordable or even
  8607. scriptable.  The exception being the 'views' control panel.  The only
  8608. properties for a control panel class refer explicitly to the 'views'
  8609. control panel.  Hopefully Apple will make more of them scriptable, but
  8610. until then I think QuickKeys (or maybe frontier, but I've never used that)
  8611. is your best bet.
  8612.  
  8613. To keep up my little habit here of combining answers with questions (just
  8614. to really confuse the subjects of threads ;-)
  8615.  
  8616. Does CE software provide extra OSA documentation with QK3.0 or is it
  8617. something you just have to figure out (I am thinking of upgrading from 2).
  8618.  
  8619. -Preston
  8620.  
  8621.  
  8622. --
  8623. Preston Holmes                  (h)619-453-9209
  8624. Dept. of Neuroscience, UCSD
  8625. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  8626. =========================================================================
  8627. Date:         Thu, 15 Sep 1994 22:24:54 -0700
  8628. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8629. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8630. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8631. Subject:      Re: Quicktime and AppleScript
  8632.  
  8633. >Quick question.
  8634. >
  8635. >Does or does not AppleScript require Quicktime (in some fashion).
  8636. >I will stop at this point in order to save myself from further humiliation :(
  8637.  
  8638. No.
  8639.  
  8640. [But there may have been a time when a pre-release AppleScript required
  8641. QuickTime in order to have the Component Manager available.]
  8642.   --John
  8643.  
  8644. --
  8645. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8646. =========================================================================
  8647. Date:         Thu, 15 Sep 1994 22:25:09 -0700
  8648. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8649. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8650. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8651. Subject:      Re: PageMaker fakes it's clipboard?
  8652.  
  8653. >I'm doing some AppleScript scripting with PageMaker, and I've noticed a
  8654. >problem with copying text from PageMaker. It seems that PageMaker
  8655. >maintains an internal clipboard file and hashes this clipboard out to the
  8656. >system clipboard when another application is moved to the front.
  8657.  
  8658. Non-trivial applications typically work that way.  Nothing unique about
  8659. PageMaker.
  8660.  
  8661.  
  8662. >I haven't been able to figure out a workaround for this problem. PageMaker
  8663. >is the only application I'm using in the script, so sending it to the
  8664. >background isn't an option.
  8665.  
  8666. Something else must be running.  Using the clipboard at all suggests that
  8667. the user (you or a client) is not using the machine to do other work while
  8668. the script is running.  So bringing Finder to the front shouldn't hurt too
  8669. much.
  8670.  
  8671. >Anybody else have experiences, suggestions, or condolences to share?
  8672.  
  8673. The PageMaker scripting stuff I uploaded here recently may or may not
  8674. provide some answers, which quite possibly don't use the clipboard at all.
  8675. I was just a conduit, since I don't have PageMaker.
  8676.    --John
  8677.  
  8678. --
  8679. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8680. =========================================================================
  8681. Date:         Fri, 16 Sep 1994 07:34:57 +0200
  8682. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8683. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8684. From:         Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
  8685. Subject:      QK 3.0 and AppleScript
  8686. In-Reply-To:  <m0qlUx7-0000HNC@rz03.FH-Karlsruhe.DE> from "Preston Holmes" at
  8687.               Sep 15, 94 09:28:05 pm
  8688.  
  8689. Preston Holmes wrote:
  8690. :Does CE software provide extra OSA documentation with QK3.0 or is it
  8691. :something you just have to figure out (I am thinking of upgrading from 2).
  8692.  
  8693. Hmm, do you mean docs about their Interface to AppleScript, the QicKeys
  8694. Toolbox? Well, nothing to rave about, really, but then you don't need it
  8695. either. The Toolbox just offers six commands in the QK Suite beyond the
  8696. four of the required suite: PlayByName to play a macro, Do Script,
  8697. TypeTheString, MakeForeGround, MakeBackground (concerning the QK Toolbox),
  8698. and DoMenuChoice.
  8699. The last one is a real beast to figure out - I still do not know how to
  8700. activate anything from the Apple menu. Giving the aplle as a name string
  8701. does not work. I guess I should stick to MenuEvents for stuff like that.
  8702.  
  8703. If you have any more questions about QK3.0, just ask and I'll see what I
  8704. can find out from the package that's sitting here on my desk. Neglected,
  8705. though, since it is virtually useless in helping scripting PhotoShop.
  8706. Does anybody have any clue how to automate batch processing with that beast?
  8707. My tries have so far been quite unsuccessful :-( Hopefully Adobe will
  8708. sometime soon realize the need for OSA support.
  8709.  
  8710. :-Preston
  8711.  
  8712. Cheers,
  8713.  
  8714. Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
  8715. ---
  8716. This product has been cruelly tested on cute little furry animals.
  8717. =========================================================================
  8718. Date:         Fri, 16 Sep 1994 08:09:04 +0200
  8719. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8720. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8721. From:         Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
  8722. Subject:      Alias/List questions
  8723.  
  8724. (I apologize if this sounds familiar, but I have so far not received
  8725. answers to my other questions, so I suppose my older posts to the
  8726. list went into the bit bucket somewhere. I have repro turned on now...)
  8727.  
  8728. In my current project (well, one of 'em :-), I am extracting picture
  8729. names from a Quark document that contains low res layout images in
  8730. order to look up the path to the corresponding highres images in a
  8731. Cumukus database. The Quark part works fine right now, after i figured
  8732. out the obvious (and mean) trap that you must not refer to image names
  8733. from the document object - which will crash Quark  if your document
  8734. contains three pages or more.
  8735.  
  8736. Searching the Cumulus database is a drag, since Cumulus apparently doesn't
  8737. support the "get every ... whose ..." construct. At least that is what
  8738. the german tech support told me indirectly when asking for the correct way
  8739. to do this. :-/
  8740.  
  8741. But at least it works without problems :-) I can find the entries I look for,
  8742. and then I need to extract the filename, which is stored as an Alias. Now
  8743. if I have Event logging activated, the Finder cries for the disk where my
  8744. image is supposed to be stored :-( Stopping logging in that part of the code
  8745. helps, but at some point in the program I need to resolve all Aliases to
  8746. simple path names so that I can sort them to prompt the user to insert them
  8747. one after the other (or to have a jukebox swap them in on demand). How can
  8748. I convert an Alias to a string without having the Finder beg for disks?
  8749.  
  8750. And another question is whether there is a quick and easy way to delete an
  8751. item from a list. Reading the, erm, fine Language Guide doesn't give me any
  8752. ideas besides reconstructing the list. Maybe somebody would like to write
  8753. a list handlking OSAX that would contain something like this? (And don't
  8754. you look at me, I don't know anything about Mac programming, hope it doesn't
  8755. show too much).
  8756.  
  8757. Anyways,
  8758.  
  8759. Cheers,
  8760.  
  8761. Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
  8762. ---
  8763. This product has been cruelly tested on cute little furry animals.
  8764.  
  8765. --
  8766. Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
  8767. ---
  8768. This product has been cruelly tested on cute little furry animals.
  8769. =========================================================================
  8770. Date:         Thu, 15 Sep 1994 23:57:13 -0700
  8771. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8772. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8773. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8774. Subject:      Re: Is there a way to tell if a program is running?
  8775.  
  8776. >Is there a way in AppleScript to tell if a program is running already? Or
  8777. >must I activate it every time to make sure?
  8778.  
  8779. If it's on the local machine, just tell the app to do something...it will
  8780. be running if it wasn't already.
  8781.  
  8782. Given the scriptable finder, (the only way to fly, now), if you really want
  8783. to know:
  8784.  
  8785. tell application "Finder"
  8786. set foo to name of processes
  8787. end tell
  8788. if foo contains "TheProcessNameYouCareAbout" then
  8789.    --it's running
  8790.  
  8791. except that Finder doesn't currently appear in the list of processes (but
  8792. will in some future Finder).
  8793.  
  8794. To find the frontmost process:
  8795.  
  8796. tell application "Finder"
  8797. processes where frontmost is true
  8798. end tell
  8799.  
  8800. returns the name of the frontmost process, unless Finder is frontmost, in
  8801. which case it is an error (because processes returns an empty list) <sigh>.
  8802.  
  8803.  
  8804. Here's one workaround of the special case (there are others):
  8805.  
  8806. tell application "Finder"
  8807.     activate
  8808.     if (processes where frontmost is true) is {} then
  8809.         set foo to "Finder"
  8810.     else
  8811.         set foo to name of processes where frontmost is true
  8812.     end if
  8813. end tell
  8814. foo --is name of frontmost process
  8815.  
  8816. --
  8817. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8818. =========================================================================
  8819. Date:         Thu, 15 Sep 1994 23:57:18 -0700
  8820. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8821. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8822. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8823. Subject:      Re: MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
  8824.  
  8825. At 14:26 9/15/94, Jason Frankovitz wrote:
  8826. > If I have a script, a normal script, with say, some
  8827. >subroutine like this:
  8828. >
  8829. >on sayHello (userName)
  8830. >display dialog "Hi, " & userName
  8831. >end sayHello
  8832. >
  8833. >and call the complied script "hey", i can't get a tell script or run
  8834. >script command in another different script to make it do its thing.
  8835. >You know, something like a  :
  8836. > tell "hey"
  8837. >sayHello ("Bob")
  8838. >end tell
  8839. >
  8840. >Does anyone know the correct syntax for telling a complied script how
  8841. >to execute one of its subroutines with a given parameter from another
  8842. >script? I could save them all as applets, and do a lot of tell
  8843. >application whatevers, i guess, but that would open up all the memory
  8844. >leakage dangers, and i want to try this script library thing anyway, I
  8845. >know it's possible, I'm just kind of stumped...
  8846.  
  8847. Here's one way, not involving an applet:
  8848.  
  8849. script one
  8850.     on sayHello(s)
  8851.         display dialog "Hello, " & s
  8852.     end sayHello
  8853. end script
  8854.  
  8855. one's sayHello("Jason")
  8856.  
  8857.  
  8858. ----------
  8859. the one's ...could be replaced by
  8860. sayHello ("Jason") of one
  8861.  
  8862. which I find even less pleasing as "English".  Either works...you can dig
  8863. properties out of script objects the same ways.
  8864.  
  8865.    --John
  8866.  
  8867. --
  8868. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8869. =========================================================================
  8870. Date:         Thu, 15 Sep 1994 23:57:23 -0700
  8871. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8872. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8873. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8874. Subject:      Re: Localtalk to Ethernet Script
  8875.  
  8876. >I'm trying to write a script to switch my powerbook 540c from localtalk to
  8877. >ethernet. I've tried simply recording the action but all AppleScript does is
  8878. >open the network control panel for me and then close it again. It ignores my
  8879. >clicks to switch from ethernet to localtalk or vise versa. Any ideas?
  8880.  
  8881. I *think* you'll need help from an outside force, such as "Player" from
  8882. PreFab Software, or QuicKeys, or Tempo.  --John
  8883.  
  8884. --
  8885. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8886. =========================================================================
  8887. Date:         Thu, 15 Sep 1994 23:57:27 -0700
  8888. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8889. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8890. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  8891. Subject:      Re: loading script objects and mem problems
  8892.  
  8893. >... and I'm having real
  8894. >problems with a script app quiting with an error of type 1 or an out of
  8895. >memory -108 error.  I can't figure it out script wise.  The problem might
  8896. >be is that I'm loading a rather large (35K) library, is this my problem -
  8897. >will I have to split this into a smaller libraries for their specific uses.
  8898.  
  8899. Try giving the applet more memory (in the usual way for an application,
  8900. twiddle with the memory assignment in its Get Info box).  Many are given
  8901. more than they need...some are not given enough.  Someday, there may be one
  8902. for which the default 200K is just right.
  8903.  
  8904.    --John
  8905.  
  8906. --
  8907. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  8908. =========================================================================
  8909. Date:         Fri, 16 Sep 1994 10:31:37 GMT+0100
  8910. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8911. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8912. From:         Christoph Dohrmann <cd@ZKM.DE>
  8913. Subject:      AppleScript & Photoshop (was Re: QK 3.0 & AS)
  8914.  
  8915. >Thomas Baetzler wrote:
  8916. >Neglected,
  8917. >though, since it is virtually useless in helping scripting PhotoShop.
  8918. >Does anybody have any clue how to automate batch processing with that beast?
  8919. >My tries have so far been quite unsuccessful :-( Hopefully Adobe will
  8920. >sometime soon realize the need for OSA support.
  8921.  
  8922. There is a product out there which is called 'photomatic' from Daystar.
  8923. It comes as
  8924. * OSAX (photomatic scripting extension)
  8925. * Photoshop PlugIn
  8926. * Photomatic (run-Only) script.
  8927. and costs roughly $200-250
  8928.  
  8929. How it works:
  8930. The PlugIn records all you do (rezize, filter...) in photoshop (PS) with its own
  8931.  generic 'language' and saves these recorded actions as a text file. You can the
  8932. n either from within PS load and play thess scripts on every picture you have in
  8933.  your front window or take a bunch of pics in the finder and drag them onto the
  8934. photomatic script. This loads every pics into PS and executes the given script.
  8935. you do not need the scriptable finder for this. As another option there is a fol
  8936. der watch function that runs if you load the applet without pics...
  8937.  
  8938. The photomatic script is limited to load-filter-save functionality. If you want
  8939. to make more sophisticated scripts (eg combining two pictures with a cromakey an
  8940. d stuff) you'll need to deal with the scripting extension (its aete) and the Plu
  8941. gIn's 'doscript' command. There are a lot of hinches e.g. with modal dialog boxe
  8942. s and stuff... I had a beta release to test about half a year ago. Maybe you can
  8943.  find a copy somewhere to take a look at it. (btw: you live roughly 3 blocks awa
  8944. y from my house...I guess)
  8945.  
  8946. Otherwise consider DeBabelizer a potential candidate for your tasks....
  8947. I have a comparison that I could send to anyone who's interested.
  8948.  
  8949. More information on this IS available but for now this might help.
  8950.  
  8951.  
  8952. Christoph
  8953.        Dohrmann
  8954.  
  8955.  
  8956.   <cd@zkm.de>
  8957. ZKM   Karlsruhe
  8958. Ritterstr    42                                            Leopoldstr.   4
  8959. 76133 Karlsruhe                                            76133 Karlsruhe
  8960. p++497219340300                                            p ++49721 24006
  8961. f++497219340-39                                            f ++same number
  8962.  
  8963.  
  8964.               Ein Mensch der spuert, wenn auch verschwommen,
  8965.               Er muesste sich, genau genommen,
  8966.               Im Grunde seines Herzens schaemen
  8967.               Zieht vor, es nicht genau zu nehmen.
  8968.                                                    Eugen Roth
  8969. =========================================================================
  8970. Date:         Fri, 16 Sep 1994 08:35:06 -0400
  8971. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8972. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  8973. From:         Philippe Chartrand <m212641@ER.UQAM.CA>
  8974. Subject:      Re: What can I do with something of class TEXT?
  8975.  
  8976. >I am trying to manipulate something of type TEXT to look for certain
  8977. >keywords. The keywords will be an entire line, and the text I need to
  8978. >extract will be an entire line. Can anyone suggest an easy way to do this?
  8979. >I am kind of new to AS and can't seem to get any sort of "contents of line
  8980. >x" function to work on a TEXT block....
  8981. >
  8982.  
  8983. AppleScript doesnt "know" about words paragraphs, lines and so on, but
  8984. Simple Text Exitor (STE) does. You can script STE in order to ask things
  8985. like
  8986.  
  8987.         get word 3 of paragraph 2 of document 1
  8988.         set style of paragraph 1 to bold
  8989.  
  8990. I don't think the "line" concept applies with STE (word wrapping is window
  8991. dependent), but the paragraph does. (Look at STE dictionnary from Script
  8992. Editor for details on this).
  8993.  
  8994.  
  8995.  
  8996.  
  8997. >--
  8998. >Joseph Goodman
  8999. >aka Hillbilly Bob=81
  9000. >jgoodma1@cc.swarthmore.edu
  9001. >Be true unto your flubba.
  9002.  
  9003. +----------------------------------------------------+
  9004.  
  9005.                 invenire quid dicas
  9006.                  inventa disponere
  9007.                    ornare verbis
  9008.                 agere et pronuntiare
  9009.                   memoriae mandare
  9010.  
  9011. +----------------------------------------------------+
  9012. Philippe Chartrand      voix            (514) 277-1367
  9013. 5238 De l'esplanade     donnees         (514) 277-6735
  9014. Montreal (Quebec)       e-mail      m212641@er.uqam.ca
  9015. Canada                                         H2T 2Z5
  9016. =========================================================================
  9017. Date:         Fri, 16 Sep 1994 08:57:40 -0500
  9018. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9019. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9020. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  9021. Subject:      Re: What can I do with something of class TEXT?
  9022.  
  9023. At 4:03 PM 15.9.94, Joseph Goodman wrote:
  9024. >I am trying to manipulate something of type TEXT to look for certain
  9025. >keywords. The keywords will be an entire line, and the text I need to
  9026. >extract will be an entire line. Can anyone suggest an easy way to do this?
  9027. >I am kind of new to AS and can't seem to get any sort of "contents of line
  9028. >x" function to work on a TEXT block....
  9029.  
  9030. If the TEXT in question is written to a file, and each "piece" that you
  9031. need is a paragraph unto itself, you should be able to do a simple
  9032.  
  9033. repeat with i from 1 to (number of paragraphs of file "HD:folder:file")
  9034. if paragraph i contains "I am looking for a certain number of keywords"
  9035. return [or set variable to...or writetext...etc] paragraph i
  9036. end repeat
  9037.  
  9038. Then again, it's way too early for me to think in strictly logical terms,
  9039. but something along those lines...
  9040.  
  9041. spud.
  9042.  
  9043.  
  9044. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9045. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  9046. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  9047. spud@access.digex.net ----------- WWW page:  http://www.digex.net/~spud
  9048.  
  9049.  
  9050. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  9051. =========================================================================
  9052. Date:         Fri, 16 Sep 1994 13:11:41 GMT
  9053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9055. From:         "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
  9056. Organization: The Personal Online Source
  9057. Subject:      How can I make a window to the frontmost?
  9058.  
  9059. I am using FaceSpan:
  9060. How can I make a window to the frontmost in FaceSpan? How can I check if a
  9061. window is allready opened?
  9062.  
  9063. andreas
  9064.  
  9065. --------------------------------------------------------
  9066. sent via  m a g n e t / +43-1-522-7-225 / info@magnet.at
  9067. --------------------------------------------------------
  9068. =========================================================================
  9069. Date:         Fri, 16 Sep 1994 09:15:02 U
  9070. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9071. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9072. From:         jsullivan <jsullivan@ARPA.MIL>
  9073. Subject:      Re: JPEGView, Startup screen, and !DeskPict
  9074.  
  9075. On Thu, 15 Sep 1994 Jon Pugh <jonpugh@NETCOM.COM> wrote:
  9076.  
  9077. > A better thing that I found is D=E9cor. There's a brand new
  9078. > version that is scriptable. You can change pictures and behavior
  9079. > with scripts. Drag and drop to change the background screen!
  9080. > D=E9cor is $5 shareware from Fran=E7o= is Pottier
  9081. > <pottier@clipper.ens.fr> and available at all fine archives.
  9082.  
  9083. I could not find this in the Graphics/Utilities area of the InfoMac archives,
  9084. could you please upload it to gaea?
  9085.  
  9086. Thanks!
  9087.  
  9088. -j o n-
  9089.  
  9090. Jonathan P. Sullivan, "Webmaster" |    jsullivan@arpa.mil [e]
  9091. Technology Reinvestment Project   |          703/696-8947 [v]
  9092.  
  9093.       For vital signs ... finger jsulliva@trp.ida.org
  9094. =========================================================================
  9095. Date:         Fri, 16 Sep 1994 08:29:10 -0500
  9096. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9097. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9098. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9099. Subject:      Re: JPEGView, Startup screen, and !DeskPict
  9100. In-Reply-To:  Your message of "Fri, 16 Sep 94 09:15:02 +0800"
  9101.  
  9102. In response to Jon Pugh, Jon Sullivan sez.....
  9103.  
  9104. >> A better thing that I found is D=E9cor. There's a brand new
  9105. >> version that is scriptable. You can change pictures and behavior
  9106. >> with scripts. Drag and drop to change the background screen!
  9107. >> D=E9cor is $5 shareware from Fran=E7o= is Pottier
  9108. >> <pottier@clipper.ens.fr> and available at all fine archives.
  9109. >
  9110. >I could not find this in the Graphics/Utilities area of the InfoMac archives,
  9111. >could you please upload it to gaea?
  9112.  
  9113. The version that supports scripting is still in testing. I've requested that a
  9114. copy be sent to me as well as the macgifts sites when it is released. I'll be
  9115. sure to let everyone know.
  9116.  
  9117. pf
  9118. your friendly, neighborhood archivist
  9119. =========================================================================
  9120. Date:         Fri, 16 Sep 1994 08:30:10 CDT
  9121. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9122. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9123. From:         Tom Donovan <donovant@NCOOK.K12.IL.US>
  9124. Subject:      Re: CopyFiles to server
  9125.  
  9126. >I'm still operating with sys 7.1 and finderlib, and I'm having difficulties
  9127. >copying files to a DataClub server. If the file is there already, AS comes
  9128. >up with a message "Can't find "DataClub:Trash". Everytime you manually
  9129. >delete a file off DataClub, it comes up with an alert saying it doesn't
  9130. >have a Trash, and deletions are permanent.
  9131. >
  9132. >Workarounds?
  9133. >
  9134. >_________________________________________________________________________
  9135. >Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  9136. >Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  9137. >The gateway to New Zealand science: http://www.rsnz.govt.nz/
  9138.  
  9139. This sounds similar to a problem I had while playing with a script to
  9140. synchronize folders.  If I remember right (and this was over 6 months ago)
  9141. the problem is that, if the trash is empty, there is essentially no "Trash"
  9142. folder for the script to put anything into.
  9143.  
  9144. Shortly thereafter, I got my hands on a "real" file synch utility and
  9145. stopped working on that particular script, without actually having to solve
  9146. the missing "Trash" problem, so I'm afraid I can't offer a solution.
  9147.  
  9148. --Tom
  9149. =========================================================================
  9150. Date:         Fri, 16 Sep 1994 09:39:58 -0400
  9151. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9152. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9153. From:         David Brown <dlb1@SEQUOIA.LLE.ROCHESTER.EDU>
  9154. Subject:      Eudora Notify Controller (was: Eudora 2.1 and notifying
  9155.               applications...)
  9156.  
  9157. Alec Plumb <aplumb@UCSD.EDU> said:
  9158.  
  9159. >I had to fiddle with the Eudora Notify controller to get it to work.  When
  9160. >Eudora gets the start notifying event, it seems to require that the
  9161. >argument be of type application.  so if fname is a string, the command
  9162. >should read something like:
  9163. >
  9164. >tell application "Eudora2.1" to start notifying application fname when mail
  9165. >arrives
  9166. >
  9167. >However, the stop notifying event seems to require that the argument be a
  9168. >string, so that the command should read something like this:
  9169. >
  9170. >tell application "Eudora2.1" to stop notifying fname when mail arrives
  9171.  
  9172.  
  9173.  
  9174.         Please send any bug reports (and helpful code fragments) for the
  9175. Eudora Notify Controller script to me and I'll submit a new version after
  9176. the non-beta Eudora's are released.  I originally wrote this for Eudora
  9177. 1.4.2 or 1.4.3b, I think, and have wondered about it working with the most
  9178. recent versions.  I works fine for me on 1.4.3 and I've had reports of it
  9179. working on 2.0x.  If someone can confirm the above behavior, it should
  9180. certainly be reported to the proper qualcomm authorities.
  9181.  
  9182.         Someone recently asked why raw AppleEvents were used.  Well, that's
  9183. all I could get to work in those versions.  I would like to have one script
  9184. work with, perhaps, several versions of an application.  Sosumi. ;-)
  9185.  
  9186.  
  9187. -- Dave, who is destined to start Eudora scripting again, any day now...
  9188. =========================================================================
  9189. Date:         Fri, 16 Sep 1994 09:36:31 -0400
  9190. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9191. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9192. From:         Kiran Wagle <groo@NETCOM.COM>
  9193. Subject:      Re: Eudora 2.1 and notifying applications...
  9194.  
  9195. On 9/15/94, a.h.s. boy wrote:
  9196.  
  9197. > "Eudora Notify Controller" hasn't worked for me either. It seems to turn
  9198. > notification "on" for certain apps, but I can't get it to turn it back off.
  9199.  
  9200. You have to use the Notify Controller to turn notification off, or use
  9201. ResEdit to delete the eNot resources.  The latter should be
  9202. self-explanatory, the former is apparently possible, I haven't tried it but
  9203. it's in the docs.
  9204.  
  9205. I think this is brain-dead--notification should be turned off when the app
  9206. quits, but I haven't bugged the much-overworked Steve Dorner about it yet.
  9207. But now that 2.1 is finally out... <grin>
  9208.  
  9209. > Has anyone talked to Steve Dorner about this?
  9210.  
  9211. Every day.  :-|  He hasn't had a vacation in three years.  :-(
  9212.  
  9213. I want Apple Guide help for Eudora.  Does anyone know how easy it is to
  9214. write AG help files?
  9215.  
  9216. ~ Kiran
  9217.  
  9218. --
  9219. 1628 5th Street NW Washington DC 20001  202/483-3373 <groo@netcom.com>
  9220. =========================================================================
  9221. Date:         Fri, 16 Sep 1994 09:05:42 -0600
  9222. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9223. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9224. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  9225. Subject:      QuickTime, PICT, startup screens etc etc
  9226.  
  9227. OK
  9228.  
  9229. One of the QSAX (osaxen, osaxi...???) in the GTQ Programming Suite is "play
  9230. movie in" which is pretty cool as it appears to open a windiow in the
  9231. Finder to play the movie. Now is there a way to do something similar with a
  9232. PICT file ie open it in a window WITHOUT invoking an application.
  9233.  
  9234. Given that I'm C challenged what I'm probably saying is has anyone done
  9235. this work for me. 8-)
  9236.  
  9237. Thank you all for responding to my previous post re. QT and AS. The
  9238. Component Manager was connection I had heard mentioned. Anyone care to give
  9239. a BRIEF definition of the "Component Manager" ?
  9240.  
  9241. Frank C.
  9242. R&E
  9243. =========================================================================
  9244. Date:         Fri, 16 Sep 1994 09:34:46 EST
  9245. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9246. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9247. From:         Steve Harf <ccmail.kenan.com!steveh@KENAN.COM>
  9248. Subject:      Newbie Questions: AppleScript and Serial Communications
  9249.  
  9250.      What is the best way to use AppleScript to do serial communications?  Are
  9251.      there some nice, small, scriptable, general purpose telecommunication
  9252.      applications available?  What about comm toolbox support?  Any serial
  9253.      comm OSAX available?
  9254. =========================================================================
  9255. Date:         Fri, 16 Sep 1994 10:59:45 EDT
  9256. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9257. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9258. From:         Danny Goodman <DGoodman@AOL.COM>
  9259. Subject:      Re: What can I do with something of class TEXT?
  9260.  
  9261. >I am trying to manipulate something of type TEXT to look for certain
  9262. >keywords. The keywords will be an entire line, and the text I need to
  9263. >extract will be an entire line. Can anyone suggest an easy way to do this?
  9264. >I am kind of new to AS and can't seem to get any sort of "contents of line
  9265. >x" function to work on a TEXT block....
  9266.  
  9267. There is no line object in the basic AppleScript object model.  A paragraph,
  9268. however, is the AppleScript equivalent to a HyperCard line (i.e., text ending
  9269. with a return).  Therefore you should be able to say something like:
  9270.  
  9271. if paragraph 3 of myText contains "<your match text here>" then...
  9272.  
  9273.  
  9274. Danny Goodman
  9275. =========================================================================
  9276. Date:         Fri, 16 Sep 1994 09:09:05 -0800
  9277. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9278. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9279. From:         Preston Holmes <pholmes@UCSD.EDU>
  9280. Subject:      Re: loading script objects and mem problems
  9281.  
  9282. >>... and I'm having real
  9283. >>problems with a script app quiting with an error of type 1 or an out of
  9284. >>memory -108 error.  I can't figure it out script wise.  The problem might
  9285. >>be is that I'm loading a rather large (35K) library, is this my problem -
  9286. >>will I have to split this into a smaller libraries for their specific uses.
  9287. >
  9288. >Try giving the applet more memory (in the usual way for an application,
  9289. >twiddle with the memory assignment in its Get Info box).  Many are given
  9290. >more than they need...some are not given enough.  Someday, there may be one
  9291. >for which the default 200K is just right.
  9292. >
  9293. >   --John
  9294.  
  9295. Yes, I've already tried giving it up to 450K (which should do it!).  What
  9296. are these memory leaks I've heard about could this be it.
  9297.  
  9298. -Preston
  9299.  
  9300. --
  9301. Preston Holmes                  (h)619-453-9209
  9302. Dept. of Neuroscience, UCSD
  9303. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  9304. =========================================================================
  9305. Date:         Fri, 16 Sep 1994 09:50:20 -0700
  9306. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9307. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9308. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9309. Subject:      Re: QuickTime, PICT, startup screens etc etc
  9310.  
  9311. >Thank you all for responding to my previous post re. QT and AS. The
  9312. >Component Manager was connection I had heard mentioned. Anyone care to give
  9313. >a BRIEF definition of the "Component Manager" ?
  9314.  
  9315. "Components" in this sense are separately compiled pieces of code
  9316. (usually), made available to applications by being placed in the Extensions
  9317. folder (usually, although they can reside in a running application,
  9318. instead).  The Component Manager presents the interface between the callers
  9319. and these bits of code.
  9320.  
  9321. This was put together for QuickTime...the movie controller thing is usually
  9322. shown and operated by a component, for example.
  9323.  
  9324. That's the short form.  The 99 pages of chapter 6 of Inside Mac:  More
  9325. Macintosh Toolbox is the long form.  [And there is a whole volume devoted
  9326. to the QuickTime components alone.]
  9327.  
  9328. The code which "does" AppleScript is a component.  --John
  9329.  
  9330. --
  9331. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9332. =========================================================================
  9333. Date:         Fri, 16 Sep 1994 09:50:24 -0700
  9334. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9335. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9336. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9337. Subject:      Re: Newbie Questions: AppleScript and Serial Communications
  9338.  
  9339. >     What is the best way to use AppleScript to do serial communications?  Are
  9340. >     there some nice, small, scriptable, general purpose telecommunication
  9341. >     applications available?  What about comm toolbox support?  Any serial
  9342. >     comm OSAX available?
  9343.  
  9344. If I did that, I would use SITcomm, from Aladdin (which I have, but don't
  9345. use much).
  9346.  
  9347.    --john
  9348.  
  9349. --
  9350. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9351. =========================================================================
  9352. Date:         Fri, 16 Sep 1994 13:19:31 -0500
  9353. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9354. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9355. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  9356. Subject:      Apple Guide
  9357.  
  9358. At 8:36 AM 16.9.94, Kiran Wagle wrote:
  9359. >I want Apple Guide help for Eudora.  Does anyone know how easy it is to
  9360. >write AG help files?
  9361. >
  9362. >~ Kiran
  9363.  
  9364. Kiran --
  9365.  
  9366. Talk to Quinn in .au...he wrote the Apple Guide for Anarchie 1.3, and is so
  9367. proud of it he could burst. I haven't been able to see it yet (still
  9368. waiting for 7.5), but he might be able to help...
  9369.  
  9370. spud.
  9371.  
  9372.  
  9373. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9374. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  9375. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  9376. spud@access.digex.net ----------- WWW page:  http://www.digex.net/~spud
  9377.  
  9378.  
  9379. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  9380. =========================================================================
  9381. Date:         Fri, 16 Sep 1994 13:30:05 EST
  9382. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9383. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9384. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  9385. Subject:      A couple of answers
  9386.  
  9387. >Is there a way in AppleScript to tell if a program is running already? Or
  9388. >must I activate it every time to make sure?
  9389.  
  9390. Try checking out the OSAX from GTQ Library called "Is Application Running"
  9391.  
  9392. >I'm trying to write a script to switch my powerbook 540c from localtalk to
  9393. >ethernet. I've tried simply recording the action but all AppleScript does is
  9394. >open the network control panel for me and then close it again. It ignores my
  9395. >clicks to switch from ethernet to localtalk or vise versa. Any ideas?
  9396.  
  9397. Unfortunately, control panels are not scriptable/recordable (at least not yet).
  9398. You can probably bridge the gap with something like KeyQuencher or QuickKeys
  9399. that can record button clicks relative to an open window.
  9400.  
  9401. --
  9402. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  9403. AOL:        kimsont@aol.com
  9404. eWorld:     kimsontran@eworld.com
  9405.  
  9406. Sigmund Freud was a cross-dresser. Ever heard of a Freudian slip?
  9407. =========================================================================
  9408. Date:         Fri, 16 Sep 1994 13:30:12 EST
  9409. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9410. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9411. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  9412. Subject:      Thanks for response & suggestions
  9413.  
  9414. Thanks for answers received from a couple of people regarding my problem with
  9415. !DeskPict. Thanks for the suggestions. I've been rather busy lately but I did
  9416. try to change the order of which Quicktime and !Deskpict was loaded. It did not
  9417. work. I'll try to explore this problem further, later today.
  9418.  
  9419. I will also keep in mind the suggestion of exploring Decor as an alternative.
  9420. Otherwise, I may just have to save the startup screen as a PICT file and figure
  9421. out someway of changing its id within my script. Thanks for the response and I'd
  9422. love to hear any other suggestions.
  9423.  
  9424. --
  9425. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  9426. AOL:        kimsont@aol.com
  9427. eWorld:     kimsontran@eworld.com
  9428.  
  9429. Sigmund Freud was a cross-dresser. Ever heard of a Freudian slip?
  9430. =========================================================================
  9431. Date:         Fri, 16 Sep 1994 12:30:53 CDT
  9432. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9433. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9434. From:         Tom Donovan <donovant@NCOOK.K12.IL.US>
  9435. Subject:      Re: "Save As..." in Eudora?
  9436.  
  9437. >Friends:
  9438. >
  9439. >   Is it possible to script Eudora's "Save As..." (from the File menu,
  9440. >version 1.4.3, though 1.5 beta would be okay)? I would like to set up a
  9441. >script which saves my MACSCRIPT Digests to a specified folder, so that it
  9442. >can be read using EasyView. The Eudora "Save" command doesn't seem to be
  9443. >the same thing.
  9444. >
  9445. >   Thanks for all the help!
  9446. >   Clint
  9447. >
  9448. >
  9449. >   Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  9450. >   Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  9451. >   Department of Molecular Biology | 609/258-5993
  9452. >   Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  9453.  
  9454. Clint,
  9455.  
  9456. Off the top of my head, I would have the script grab the text of the
  9457. message into a variable, then use one of the File i/o osaxen to write it to
  9458. a text file, bypassing Eudora altogether.
  9459.  
  9460. Hope this is enough of a nudge...
  9461.  
  9462. --Tom
  9463.  
  9464. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9465. Tom Donovan             "The city is a place where a small boy, as he walks
  9466. Technology Facilitator   through it, may see something that will tell him
  9467. Glen Grove School        what he wants to do his whole life."
  9468. Glenview, Illinois                                          --Louis I. Kahn
  9469. E-mail: donovant@ncook.k12.il.us, donovan@covis.nwu.edu
  9470. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9471. =========================================================================
  9472. Date:         Fri, 16 Sep 1994 10:56:27 -0700
  9473. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9474. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9475. From:         Kevin Purcell <kevinpu@ATM.COM>
  9476. Subject:      Re: What can I do with something of class TEXT?
  9477.  
  9478. >AppleScript doesnt "know" about words paragraphs, lines and so on, but
  9479. >Simple Text Exitor (STE) does. You can script STE in order to ask things
  9480. >like
  9481.  
  9482. This is fortunatly incorrect.
  9483.  
  9484. The AppleScript String class and it synonym Text do know have words,
  9485. paragraphs, characters and text as elements (see page 66 of the AppleScript
  9486. Language Guide):
  9487.  
  9488. For example:
  9489.  
  9490. get words of "fee fie foe fum"
  9491.  
  9492. returns
  9493.  
  9494. {"fee", "fie", "foe" "fum"}
  9495.  
  9496. likewise
  9497.  
  9498. get word 1 of "fee fie foe fum"
  9499.  
  9500. works.
  9501.  
  9502. But you can't do
  9503.  
  9504. set bingo to "fee fie foe fum"
  9505. set word 1 of bingo to "foo"
  9506.  
  9507. Kevin "the Language Lawyer" Purcell :-)
  9508.  
  9509. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  9510. Attachmate Corp                   xenolith@halcyon.com
  9511. =========================================================================
  9512. Date:         Fri, 16 Sep 1994 14:26:17 -0400
  9513. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9514. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9515. From:         "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
  9516. Subject:      [?] on TCP/IP osax
  9517.  
  9518. I just tried out the TCP/IP osax with the Send Mail sample script.  It
  9519. worked great.
  9520.  
  9521. My question is:  Can I include a subject?  If I can, how can it be
  9522. incorporated into the Send Mail script.
  9523.  
  9524. Thanks,
  9525.  
  9526. Kevin
  9527. =========================================================================
  9528. Date:         Fri, 16 Sep 1994 11:43:03 -0800
  9529. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9530. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9531. From:         David Lewis <lewis@NETCOM.COM>
  9532. Subject:      Re: Localtalk to Ethernet Script
  9533.  
  9534. >>I'm trying to write a script to switch my powerbook 540c from localtalk to
  9535. >>ethernet. I've tried simply recording the action but all AppleScript does is
  9536. >>open the network control panel for me and then close it again. It ignores my
  9537. >>clicks to switch from ethernet to localtalk or vise versa. Any ideas?
  9538. >
  9539. >I *think* you'll need help from an outside force, such as "Player" from
  9540. >PreFab Software, or QuicKeys, or Tempo.  --John
  9541. >
  9542. Or KeyQuencer, which is a lot cheaper than any of the above. --David
  9543.  
  9544. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  9545. =========================================================================
  9546. Date:         Fri, 16 Sep 1994 19:35:00 GMT
  9547. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9548. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9549. From:         Gateway <Gateway@OUI.COM>
  9550. Organization: Odyssey Ultraware Inc.
  9551. Subject:      NDN: MACSCRPT Digest - 14 Sep 1994 to 15 Sep 1994
  9552.  
  9553. Sorry. Your message could not be delivered to:
  9554.  
  9555. musikTypes,UltraLink (The name was not found at the remote site. Check that
  9556. the name has been entered correctly.)
  9557. =========================================================================
  9558. Date:         Fri, 16 Sep 1994 14:59:32 -0500
  9559. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9560. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9561. From:         Steve Alex <steve_alex@AIDT.EDU>
  9562. Subject:      PowerMac Differences
  9563.  
  9564. Every once in a while I run into something that scripts seem to do
  9565. differently on different platforms, even thought they are running the same
  9566. version of everything. Now that we have a couple of PowerMac's, I've run into
  9567. some problems with scripts breaking. For instance:
  9568.  
  9569. on run
  9570.         display dialog "hello"
  9571.         tell application "Finder"
  9572.                 activate
  9573.                 -- do some stuff
  9574.                 tell application "Foo" of machine "Bar"
  9575.                         beep -- actually send some stuff from calling applicatio
  9576. n
  9577.                 end tell
  9578.         end tell
  9579.         activate
  9580.         display dialog "goodbye"
  9581. end run
  9582.  
  9583. Works fine on 680x0. The real application copies files to a server then tells
  9584. an application on the server what was copied over, who sent it etc. When I
  9585. run this script on a 6100, the script will halt at the nested "tell"
  9586. statement and flash the application icon for attention. Once you bring the
  9587. application to the front, it will continue (of course if you arn't there, it
  9588. times out).  The fix was to unnest the tell statements, but it was not easy
  9589. to find. When debugging script applications (drop), things don't work quite
  9590. the same from the editor as they do when actually running.
  9591.  
  9592. Just though I'd pass this on.
  9593.  
  9594. Steve Alex
  9595. =========================================================================
  9596. Date:         Fri, 16 Sep 1994 15:38:42 -0500
  9597. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9598. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9599. From:         Steve Alex <steve_alex@AIDT.EDU>
  9600. Subject:      A breakthrough on transportable scripts?
  9601.  
  9602. If you've been on this list for a while, a FAQ deals with writting script
  9603. applications on one machine and having it run on another without having to
  9604. recompile the script. I guess the problem comes from the script storing
  9605. aliases to the applications it references somewhere in the compiled code.
  9606. When you run the application on another system, it will ask you each time you
  9607. launch it where application "x" is.
  9608.  
  9609. This of course is a pain.  Solutions in the past where to ask for the
  9610. location of the application the first time and then store the alias to the
  9611. application in a property  and save it in the preferences folder for
  9612. subsequent runs. This works, but is still a pain, especially with a novice
  9613. user.
  9614.  
  9615. I must of tried 30 ways to overcome this problem and found one using the
  9616. scriptable finder and some standardization. The standardization was to put
  9617. aliases to applications that would be called in scripts in a known location.
  9618. Since we already standardized on MenuChoice (now part of 7.5), I just put a
  9619. "applications" folder in the Apple Menu Items folder and put aliases to
  9620. frequently used application in the folder. In the script applications I then
  9621. use code like the following to launch applications I need. The code below
  9622. launches MacWritePro.
  9623.  
  9624.         tell application "Finder"
  9625.                 set foo to original item of every alias file of |_
  9626.                         folder "applications" of apple menu items folder |_
  9627.                         whose creator type is "MWPR"
  9628.                 set bar to foo as string
  9629.         end tell
  9630.         launch application bar
  9631.  
  9632. --   |_ represents a line continue character
  9633.  
  9634. I'll leave the error trapping (two aliases would create a list, etc) up to
  9635. the reader, I'am just trying to get the concept out.
  9636.  
  9637. Does anyone have the ISBN number of the book on the Scriptable Finder? It may
  9638. be easier than all this experimenting and guessing.
  9639.  
  9640. Steve Alex
  9641. =========================================================================
  9642. Date:         Fri, 16 Sep 1994 13:50:12 -0800
  9643. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9644. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9645. From:         Jon Pugh <jonpugh@NETCOM.COM>
  9646. Subject:      AppleScript & 7.5
  9647.  
  9648. I just installed 7.5 and see that my Finder Scripting Addition is now at
  9649. version 1.2, to answer Lawrence's question.  In addition, there are 3 new
  9650. osaxen: AGStart, MonitorDepth & Set Volume.  AGStart starts AppleGuide, the
  9651. others are obvious.
  9652.  
  9653. The Script Editor is now at version 1.1.1.  I'll try to find out what
  9654. changed.  Hopefully it's the dictionary bug, but I don't have a clue.
  9655.  
  9656. There are a dozen sample scripts included.  Their names are:
  9657.  
  9658. Find Original from Alias
  9659. Stop File Sharing
  9660. Turn Sound Off
  9661. Turn Sound On
  9662. Start File Sharing
  9663. Add Alias to Apple Menu
  9664. Share a Folder
  9665. Alert When Folder Changes
  9666. Change Monitor to 256
  9667. Change Monitor to B&W
  9668. Hide/Show Folder Sizes
  9669. Synchronize Folders
  9670.  
  9671. Finally, since "version" is the Finder Scripting Extension's version,
  9672. "product version" is the system & finder version, which is 7.5.
  9673.  
  9674. Jon
  9675.  
  9676. PS:
  9677.  
  9678. I do my mail from my PowerBook while at work, so I wrote a script to send
  9679. the clipboard from my Quadra to Eudora on my PowerBook.
  9680.  
  9681. set theText to the clipboard
  9682. tell application "Eudora" of machine "Office in a box" of zone "Storm Phonenet"
  9683.         set the clipboard to theText
  9684. end tell
  9685.  
  9686. I use it with OSA Menu.  It's damn cool!  It could probably be generalized,
  9687. but I don't feel like bothering.
  9688.  
  9689. Jon
  9690. =========================================================================
  9691. Date:         Fri, 16 Sep 1994 16:38:47 EDT
  9692. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9693. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9694. From:         Dean Kirstein <USDDAK@VTVM1.CC.VT.EDU>
  9695. Subject:      Digital Signatures (Digisign)
  9696.  
  9697. I am trying to use the Digisign utility to have an Applescript automaticly
  9698. sign a file and also "verify" it as well. The Digisign does not appear to be
  9699. scriptable?
  9700.  
  9701. Has anyone done any work with the Digisign or digital signatures and
  9702. Applescript?
  9703.  
  9704.  Virginia Tech                                  User Services Department
  9705. =========================================================================
  9706. Date:         Fri, 16 Sep 1994 15:25:16 -0800
  9707. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9708. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9709. From:         Matt Stevens <matt@TRIBE.TRIBE.COM>
  9710. Subject:      Need messages
  9711.  
  9712. Sorry to waste bandwidth, but I didn't receive the second half of the
  9713. digest for Sept. 14 and 15 and I noticed that one of the topics listed was:
  9714.  18. Localtalk to Ethernet Script
  9715.  
  9716. If someone could email me the relevant messages, or digest I'd much
  9717. appreciate it.  Thanks!
  9718. --
  9719. matt
  9720.  
  9721. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  9722. ::                                                                         ::
  9723. :: Matt Stevens                                      email: matt@tribe.com ::
  9724. :: Online Information Technician                     phone:   510.814.3980 ::
  9725. :: Tribe Computer Works                                fax:   510.814.3980 ::
  9726. :: <a href="http://www.tribe.com/HTML/thetribe/matt.html">Matt's Home!</a> ::
  9727. ::                                                                         ::
  9728. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  9729. =========================================================================
  9730. Date:         Fri, 16 Sep 1994 14:52:35 U
  9731. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9732. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9733. From:         Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV>
  9734. Subject:      Variable between apps?
  9735.  
  9736.                        Subject:                               Time:2:43 PM
  9737.   OFFICE MEMO          Variable between apps?                 Date:9/16/94
  9738. Greetings,
  9739. I am having some difficulty transferring data between apps, and I was
  9740. wondering if someone could help.
  9741.  
  9742. I have an applet that gathers some info from the user (Name, ph#, building#,
  9743. room#, etc) and stores the responses as a list in a variable called UserData.
  9744.  I then want the applet to put this information into a field in a HyperCard
  9745. stack.  Seems simple, but I cannot seem to get it to work.  I think I just
  9746. have a mental-block on this one thing...
  9747.  
  9748. Can someone show me exactly how to get the variable "UserData" from the
  9749. applet "Logger" into a background field named "New Record" in HyperCard stack
  9750. "Respository"?  I am an accomplished HC scripter, and a newbie AppleScripter,
  9751. and if I can just get this one thing right, I think I will "get" this whole
  9752. AppleScript deal.
  9753.  
  9754. Thanks for the help,
  9755. - Christian
  9756. =========================================================================
  9757. Date:         Fri, 16 Sep 1994 19:27:29 -0700
  9758. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9759. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9760. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9761. Subject:      Re: A breakthrough on transportable scripts?
  9762.  
  9763. At 13:38 9/16/94, Steve Alex wrote:
  9764. >Does anyone have the ISBN number of the book on the Scriptable Finder? It may
  9765. >be easier than all this experimenting and guessing.
  9766.  
  9767. ISBN 0-201-40910-0
  9768.  
  9769. --
  9770. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9771. =========================================================================
  9772. Date:         Fri, 16 Sep 1994 19:27:44 -0700
  9773. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9774. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9775. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  9776. Subject:      Re: AppleScript & 7.5
  9777.  
  9778. >I just installed 7.5 and see that my Finder Scripting Addition is now at
  9779. >version 1.2, to answer Lawrence's question.  In addition, there are 3 new
  9780. >osaxen: AGStart, MonitorDepth & Set Volume.  AGStart starts AppleGuide, the
  9781. >others are obvious.
  9782. >
  9783. >The Script Editor is now at version 1.1.1.  I'll try to find out what
  9784. >changed.  Hopefully it's the dictionary bug, but I don't have a clue.
  9785.  
  9786. No...sorry to say the Dictionary Bug is alive and well (if you mean the
  9787. missing headings and/or missing complete content, depending on phase of
  9788. moon).  [I got to work on a real "phase of the moon" bug a couple of years
  9789. ago...a program which crashed if asked to draw the moon when it was more
  9790. than 99% full.]
  9791.  
  9792. By the way, if you bug the Apple folks about this again, you might include
  9793. mention of the problem of drawing the right end of long Dictionary comment
  9794. lines behind the vertical scroll bar (I have my comment font set to
  9795. *Italic* Geneva 9, which may well be part of the problem).
  9796.  
  9797.    --John
  9798.  
  9799. --
  9800. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  9801. =========================================================================
  9802. Date:         Sat, 17 Sep 1994 12:25:00 -0400
  9803. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9804. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9805. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  9806. Subject:      VVision images
  9807.  
  9808.  
  9809. Is there anything in the VideoVision 2.0 package aside from QuikTime 2.0
  9810. which is of any interest to 'non card-holders' as it were? Or are all of
  9811. the other utilities in there only usable by VVision owners?
  9812. =========================================================================
  9813. Date:         Sat, 17 Sep 1994 08:15:32 -0500
  9814. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9815. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9816. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  9817. Subject:      Re: "Save As..." in Eudora?
  9818.  
  9819. Tom:
  9820.  
  9821.    Thanks for the tip:
  9822.  
  9823. >Date:    Fri, 16 Sep 1994 12:30:53 CDT
  9824. >From:    Tom Donovan <donovant@NCOOK.K12.IL.US>
  9825. >Subject: Re: "Save As..." in Eudora?
  9826. [...]
  9827. >Off the top of my head, I would have the script grab the text of the
  9828. >message into a variable, then use one of the File i/o osaxen to write it to
  9829. >a text file, bypassing Eudora altogether.
  9830.  
  9831.    Kiran Wagle <groo@netcom.com> gave me some similar advice via e-mail
  9832. (Kiran also highly recommended Eudora 1.5...or even 2.1).
  9833.  
  9834.    Here's the answer from the horse's mouth:
  9835.  
  9836. >From: sdorner@qualcomm.com (Steve Dorner)
  9837. >Subject: Re: "Save As..." in Eudora AppleScript?
  9838. >
  9839. >Alas, no.
  9840.  
  9841. Pithy, but unarguable. But, gee...I thought AppleScript was supposed to
  9842. make life *easier* :-) .
  9843.  
  9844.    Clint
  9845.  
  9846.  
  9847.    Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  9848.    Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  9849.    Department of Molecular Biology | 609/258-5993
  9850.    Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  9851. =========================================================================
  9852. Date:         Sat, 17 Sep 1994 14:06:51 -0500
  9853. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9854. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9855. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  9856. Subject:      Re: Eudora 2.1 and notifying applications...
  9857.  
  9858. At 8:16 AM 15.9.94, Tony McDonald wrote:
  9859. >If the applet is not running and Eudora gets some new mail, it launches the
  9860. >applet and....nothing.
  9861. >
  9862. >The dictionary entry for notice in Eudora 2.1 is
  9863. >notice: Eudora sends this event to notify an application that something
  9864. >happened
  9865. >notice
  9866. >        [occurrence mail arrives/mail sent/will connect/has connected] --
  9867. >what happened
  9868. >        [messages list] -- of the messages involved
  9869. >
  9870. >Is there something wrong with my applet syntax? (ie I don't mention
  9871. >'occurrence' anywhere). The Eudora notify osax only has an entry for
  9872. >'notify',not 'notice' by the way.
  9873.  
  9874. I had the exact same problem. Getting rid of the parameter "theMessages"
  9875. fixes the problem, but then you don't have a list of the new messages. I've
  9876. gone crazy trying to fix this. I did figure out, though, that if you do
  9877.  
  9878. on notify(messages)
  9879. display dialog (class of messages)
  9880. end
  9881.  
  9882. It returns "scrpt", and not "list" as it should. I don't know if this is a
  9883. bug in the Eudora Notification OSAX or not... I noticed the bizarre fact
  9884. that the OSAX is called "notify", not "notice" as well. That may, in fact,
  9885. be the problem. The author may have simply written an OSAX for simple
  9886. notification, and not notification with parameters... I'll write to him and
  9887. find out.
  9888.  
  9889. Steve Dorner replied to my question about exactly what parameters the
  9890. notification sends by quoting the dictionary entry above. That leads me to
  9891. believe that it is, in fact, the OSAX which is not sending along the proper
  9892. parameters... I'll keep you posted.
  9893.  
  9894. spud.
  9895.  
  9896.  
  9897. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9898. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  9899. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  9900. spud@access.digex.net ----------- WWW page:  http://www.digex.net/~spud
  9901.  
  9902.  
  9903. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  9904. =========================================================================
  9905. Date:         Sat, 17 Sep 1994 13:16:11 -0700
  9906. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9907. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9908. From:         Jon Pugh <jonpugh@NETCOM.COM>
  9909. Subject:      Re: Quicktime and AppleScript
  9910.  
  9911. John W. Baxter <jwbaxter@OLYMPUS.NET> (et al) wrote:
  9912. >>
  9913. >>Does or does not AppleScript require Quicktime (in some fashion).
  9914. >>I will stop at this point in order to save myself from further humiliation :(
  9915. >
  9916. >No.
  9917. >
  9918. >[But there may have been a time when a pre-release AppleScript required
  9919. >QuickTime in order to have the Component Manager available.]
  9920.  
  9921. AppleScript has always shipped with a copy of the component manager 1.5
  9922. inside, so it can install it if it is not already there.  AppleScript
  9923. requires nothing besides itself (assuming that you count the AE Manager as
  9924. part of AppleScript).
  9925.  
  9926. Of course, if we're talking prerelease, there's all kinds of weird stuff
  9927. that we could get into.  ;)
  9928.  
  9929. Jon
  9930. =========================================================================
  9931. Date:         Sat, 17 Sep 1994 13:16:14 -0700
  9932. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9933. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9934. From:         Jon Pugh <jonpugh@NETCOM.COM>
  9935. Subject:      Re: AppleScript & 7.5
  9936.  
  9937. John W. Baxter <jwbaxter@OLYMPUS.NET> wrote:
  9938. >Jon Pugh <jonpugh@netcom.com> wrote:
  9939. >>I just installed 7.5 and see that my Finder Scripting Addition is now at
  9940. >>version 1.2, to answer Lawrence's question.  In addition, there are 3 new
  9941. >>osaxen: AGStart, MonitorDepth & Set Volume.  AGStart starts AppleGuide, the
  9942. >>others are obvious.
  9943. >>
  9944. >>The Script Editor is now at version 1.1.1.  I'll try to find out what
  9945. >>changed.  Hopefully it's the dictionary bug, but I don't have a clue.
  9946. >
  9947. >No...sorry to say the Dictionary Bug is alive and well (if you mean the
  9948. >missing headings and/or missing complete content, depending on phase of
  9949. >moon).
  9950.  
  9951. Yeah, I was being optimistic.  Jens says he doesn't know why they changed
  9952. the version number from 1.1 to 1.1.1.  I took a look at the code and it
  9953. appears that it's just a recompile.  They turned off resource names, which
  9954. saved some space, and the globals (stored off of A5) changed their offsets.
  9955. I didn't examine all the code differences, but a spot check indicated that
  9956. no code really changed.
  9957.  
  9958. >By the way, if you bug the Apple folks about this again, you might include
  9959. >mention of the problem of drawing the right end of long Dictionary comment
  9960. >lines behind the vertical scroll bar (I have my comment font set to
  9961. >*Italic* Geneva 9, which may well be part of the problem).
  9962.  
  9963. I didn't know what you were talking about until I went and looked.  You've
  9964. misdiagnosed the problem, I think.  Iy has nothing to do with the font or
  9965. style.  The real trouble is that the dictionary window doesn't wrap based
  9966. on its width.  Instead, it appears to have a fixed wrap point (and my
  9967. default dictionary window is that wide) so that the wrap never changes,
  9968. regardless of how wide the window is.  I agree, it's kind of lame though.
  9969.  
  9970. Jon
  9971. =========================================================================
  9972. Date:         Sat, 17 Sep 1994 13:16:17 -0700
  9973. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9974. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  9975. From:         Jon Pugh <jonpugh@NETCOM.COM>
  9976. Subject:      Re: AppleScript & Photoshop
  9977.  
  9978. Christoph Dohrmann <cd@ZKM.DE> writes:
  9979. >
  9980. >>Thomas Baetzler wrote:
  9981. >>Neglected,
  9982. >>though, since it is virtually useless in helping scripting PhotoShop.
  9983. >>Does anybody have any clue how to automate batch processing with that beast?
  9984. >>My tries have so far been quite unsuccessful :-( Hopefully Adobe will
  9985. >>sometime soon realize the need for OSA support.
  9986. >
  9987. >There is a product out there which is called 'photomatic' from Daystar.
  9988. >It comes as
  9989. >* OSAX (photomatic scripting extension)
  9990. >* Photoshop PlugIn
  9991. >* Photomatic (run-Only) script.
  9992. >and costs roughly $200-250
  9993. >
  9994. >How it works:
  9995. >[snip...]
  9996. >
  9997. >The photomatic script is limited to load-filter-save functionality. If you
  9998. >want to make more sophisticated scripts (eg combining two pictures with a
  9999. >cromakey and stuff) you'll need to deal with the scripting extension (its
  10000. >aete) and the PlugIn's 'doscrit' command. There are a lot of hinches e.g. with
  10001. >modal dialog boxes and stuff... [snip]
  10002.  
  10003. Another option is PhotoFlash.  It does a lot of this stuff and is
  10004. completely scriptable.  Depending on what you do with PhotoShop, you can
  10005. replace a lot of its basic functionality with a fast scriptable program.
  10006.  
  10007. Plus, just hitting some of the mail order catalogs is version 2.0 which
  10008. includes a scriptable image cataloger (similar to the $1500 Cumulus
  10009. product). That makes batch processing of images _very_ easy.  They've even
  10010. lowered the price.  Check it out.  I'll post a press release when it
  10011. arrives.
  10012.  
  10013. Jon
  10014. =========================================================================
  10015. Date:         Sat, 17 Sep 1994 16:45:48 -0400
  10016. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10017. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10018. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  10019. Subject:      oops
  10020.  
  10021. In case you're wondering why the heck I posted that last message about
  10022. VideoVision to this list, I don't have any idea. I meant to send it to the
  10023. AV list. there's one letter's difference in my addressbook alias between
  10024. the two. I should stop doing all my communicating at 4 a.m., maybe.
  10025. =========================================================================
  10026. Date:         Sat, 17 Sep 1994 22:52:50 -0700
  10027. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10028. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10029. From:         "Allan R. Crump Jr" <jhhw@CRL.COM>
  10030. Subject:      AutoType OSAX
  10031.  
  10032. Just a short THANK YOU to jedavis@cs.stanford.edu for writing the
  10033. AutoType OSAX that is on Gaea. With it, I have managed to automate
  10034. just about every un-scriptable application that I have !!
  10035.  
  10036. I don't know how I got along without it before !
  10037. Allan C.
  10038. =========================================================================
  10039. Date:         Sun, 18 Sep 1994 02:33:50 -0500
  10040. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10041. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10042. From:         "Scott S. Lawton" <ssl@PREFAB.COM>
  10043. Subject:      Re: QK 3.0 and AppleScript
  10044.  
  10045. Thomas Baetzler wrote:
  10046. >QK3.0 .... Neglected,
  10047. >though, since it is virtually useless in helping scripting PhotoShop.
  10048. >Does anybody have any clue how to automate batch processing with that beast?
  10049. >My tries have so far been quite unsuccessful :-( Hopefully Adobe will
  10050. >sometime soon realize the need for OSA support.
  10051.  
  10052. Well, Photoshop 3.0 doesn't seem to add any OSA support, so I wouldn't hold
  10053. my breath.  You could use our Player product to drive Photoshop from
  10054. AppleScript (or Frontier).  Advantage over QK or QKScript: Player adds
  10055. verbs directly to AppleScript (or UserTalk), so the full power of the
  10056. scripting language is available at every step.
  10057.  
  10058. Details on ftp://gaea.kgs.ukans.edu/applescrpt/PRs/PlayerInfo.sit.hqx
  10059.  
  10060. I can also e-mail example scripts to anyone who is interested.  (Please
  10061. specify AppleScript, Frontier or both.)
  10062.  
  10063. cheers,
  10064.  
  10065. -- SSL, PreFab Software
  10066. =========================================================================
  10067. Date:         Sun, 18 Sep 1994 02:34:11 -0500
  10068. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10069. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10070. From:         "Scott S. Lawton" <ssl@PREFAB.COM>
  10071. Subject:      Re: Scripting the scriptable Finder
  10072.  
  10073. >4) On a similar subject, I have learned a bit of a trick. If you have the
  10074. >French (or probably other) dialect installed, and you switch to French in
  10075. >the formatting menu, you can see the actual AppleEvent commands that are
  10076. >being sent by many of the OSAX.
  10077.  
  10078. And if you don't have another dialect, just remove the OSAX from the Scr.
  10079. Additions folder.
  10080.  
  10081. cheers,
  10082.  
  10083. -- SSL, PreFab Software
  10084. =========================================================================
  10085. Date:         Sun, 18 Sep 1994 02:34:20 -0500
  10086. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10087. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10088. From:         "Scott S. Lawton" <ssl@PREFAB.COM>
  10089. Subject:      Re: Localtalk to Ethernet Script
  10090.  
  10091. >>I *think* you'll need help from an outside force, such as "Player" from
  10092. >>PreFab Software, or QuicKeys, or Tempo.  --John
  10093. >>
  10094. >Or KeyQuencer, which is a lot cheaper than any of the above
  10095.  
  10096. Well, for simple tasks, Player Runtime will suffice, and isn't that much*
  10097. more expensive ($25 commercial) than KQ ($10 shareware).  Advantage: adds
  10098. verbs to your chosen scripting language vs. sending a doScript in KQ's
  10099. language.  For longer scripts, it's probably more "synchronous" than KQ.
  10100.  
  10101. * Granted the percentage difference is high, but the absolute difference isn't!
  10102.  
  10103. cheers,
  10104.  
  10105. -- SSL, PreFab Software
  10106. =========================================================================
  10107. Date:         Fri, 16 Sep 1994 16:03:25 -0600
  10108. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10109. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10110. From:         Karl Overland <Karl_Overland%tcm.mn.org@HARVUNXW.BITNET>
  10111. Subject:      Re(2): Problem running script
  10112.  
  10113. What was that?  who are you and why did I receive it?
  10114.  
  10115. Karl Overland
  10116. =========================================================================
  10117. Date:         Sun, 18 Sep 1994 09:10:49 GMT
  10118. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10119. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10120. From:         "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
  10121. Organization: The Personal Online Source
  10122. Subject:      Where can I find the TCP/IP osax?
  10123.  
  10124. thanx
  10125. Andreas
  10126.  
  10127. --------------------------------------------------------
  10128. sent via  m a g n e t / +43-1-522-7-225 / info@magnet.at
  10129. --------------------------------------------------------
  10130. =========================================================================
  10131. Date:         Sun, 18 Sep 1994 09:17:57 CDT
  10132. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10133. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10134. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  10135. Subject:      Re: QuickTime, PICT, startup screens etc etc
  10136.  
  10137. > One of the QSAX (osaxen, osaxi...???) in the GTQ
  10138. > Programming Suite is "play movie in" which is pretty cool
  10139. > as it appears to open a windiow in the Finder to play the
  10140. > movie. Now is there a way to do something similar with a
  10141. > PICT file ie open it in a window WITHOUT invoking an
  10142. > application.
  10143.  
  10144. Won't QuickTime read JPEG compressed PICTs? Use JPEGView to save
  10145. a PICT in the compressed format. Photoshop will do this too.
  10146.  
  10147. Peter
  10148. =========================================================================
  10149. Date:         Sun, 18 Sep 1994 09:24:24 CDT
  10150. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10151. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10152. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  10153. Subject:      Re: Variable between apps?
  10154.  
  10155. > I am having some difficulty transferring data between
  10156. > apps, and I was wondering if someone could help.
  10157.  
  10158. The following post is from the HyperCard news group. Kevin Calhoun leads
  10159. the HyperCard development team. Hope it answers some questions.
  10160.  
  10161.  
  10162. ---------------------------------------------------------------------
  10163.  
  10164. From: jkc@apple.com (John Kevin Calhoun)
  10165. [1] Re: Data collection with AppleScript
  10166. Date: Thu Sep 15 17:17:17 EDT 1994
  10167. Organization: Apple Computer Inc, Cupertino, CA
  10168. Lines: 91
  10169.  
  10170.  
  10171. In article <34nvub$3eb@news.arc.nasa.gov>,
  10172. Christian Jacobsen  <jacobsen@george.arc.nasa.gov> wrote:
  10173. >Could someone post, or email me, a sample script that will pass
  10174. >a variable from one application to another?  Here is what I have
  10175. >so far:
  10176. >
  10177. >property DefinedApp : ""
  10178. >set DefinedApp to (choose application with prompt "Select Target:")
  10179. >set UserInputVar to "Someday my prints will come..."
  10180. >tell DefinedApp
  10181. >        ---- WHAT?  How do I tell DefinedApp to set a local variable to the
  10182. >value of UserInputVar?
  10183. >end tell
  10184.  
  10185. The best way to pass data between applications, in fact to pass data
  10186. between any two scripts, is by means of parameters, like so:
  10187.  
  10188.   property DefinedApp : ""
  10189.   set DefinedApp to (choose application with prompt "Select Target:")
  10190.   set UserInputVar to "Someday my prints will come..."
  10191.   tell DefinedApp
  10192.     heresTheStuff(UserInputVar)
  10193.   end tell
  10194.  
  10195. In the example above, I'm passing the value contained by UserInputVar
  10196. as a parameter (in fact the only parameter) to the subroutine
  10197. 'heresTheStuff'.  The applet or HyperCard-based application that
  10198. receives the subroutine call can handle it in a script with the
  10199. following handler:
  10200.  
  10201.   on heresTheStuff(theStuff)
  10202.     -- theStuff now contains the value sent as the parameter
  10203.   end heresTheStuff
  10204.  
  10205. In other words, your script calls the subroutine named "heresTheStuff"
  10206. with the data you want to pass to it in the first parameter to the
  10207. call.  Subroutine calls and parameter passing are discussed in the
  10208. _AppleScript Language Guide_ on pages 235-239.
  10209.  
  10210. You can also use HyperCard's global variables to pass data between
  10211. scripts, but they are best used only when you need to store textual
  10212. data between chains of script execution.  The following script
  10213. stores the value contained by UserInputVar in a HyperCard global
  10214. called ReceiveVar.  Note the use of quotation marks in the reference
  10215. to the variable; they're used here because, to AppleScript, HyperCard
  10216. globals are application objects, not language elements, and they
  10217. must therefore be specified by the means AppleScript provides for
  10218. application objects, in this case by name.  From AppleScript, you
  10219. should think of HyperCard globals as fields that lack a visual
  10220. manifestation, i.e. named containers you can't see.  (BTW, Chapter 5
  10221. of the _AppleScript Language Guide_ is all about objects and
  10222. references.)
  10223.  
  10224.   property DefinedApp : ""
  10225.   set DefinedApp to (choose application with prompt "Select Target:")
  10226.   set UserInputVar to "Someday my prints will come..."
  10227.   tell DefinedApp
  10228.     copy UserInputVar to variable "ReceiveVar"
  10229.   end tell
  10230.  
  10231. You can then examine the data placed in ReceiveVar in a HyperTalk
  10232. script, as follows:
  10233.  
  10234.   on doSomethingInHT
  10235.     -- do something with ReceiveVar
  10236.     global ReceiveVar
  10237.     answer ReceiveVar
  10238.   end doSomethingInHT
  10239.  
  10240. or in AppleScript, as follows:
  10241.  
  10242.   on doSomethingInAS
  10243.     -- do something with ReceiveVar
  10244.     display dialog variable "ReceiveVar"
  10245.   end doSomethingInAS
  10246.  
  10247. Finally, you could transfer data between your script and your HyperCard-
  10248. based application by putting the data into a HyperCard field, like so:
  10249.  
  10250.   property DefinedApp : ""
  10251.   set DefinedApp to (choose application with prompt "Select Target:")
  10252.   set UserInputVar to "Someday my prints will come..."
  10253.   tell DefinedApp
  10254.     copy UserInputVar to field 1  -- field by number
  10255.     copy UserInputVar to field "Fred"  -- field by name
  10256.     copy UserInputVar to field id 127  -- field by id
  10257.   end tell
  10258.  
  10259. Kevin Calhoun
  10260. jkc@apple.com
  10261. End
  10262. =========================================================================
  10263. Date:         Sun, 18 Sep 1994 17:35:24 +0000
  10264. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10265. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10266. From:         Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
  10267. Subject:      How can I strip trailing return/blank lines from a string
  10268.  
  10269. I have tried various ways to strip trailing returns/blank lines from a
  10270. string x, usually along the lines of:
  10271.  
  10272. while last paragraph of x is ""
  10273. set x to paragraphs 1 thru ((count paragraphs in x) - 1) of x
  10274. end while
  10275.  
  10276. I think that's how in went, I then get erros of can't get last paragraph os
  10277. and then the lines of the script in separate speech brackets. Adding set
  10278. AppleScript's text item delimiters to ... or as text as string etc doesn't
  10279. help. I've tried various other things but none of them work.
  10280.  
  10281. Any replies appreciated, Neil.
  10282.  
  10283. Neil Christie       |Voice/Fax: 0131 229 6507
  10284. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  10285. Edinburgh           |-------------------------------------
  10286. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  10287. Scotland            |System 7.1, running PPP on a 14.4K modem
  10288. =========================================================================
  10289. Date:         Sun, 18 Sep 1994 17:35:58 +0000
  10290. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10291. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10292. From:         Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
  10293. Subject:      How can I tell FileMaker Pro to tell my app to do s'thing
  10294.  
  10295. Sorry if this is simple but none of the examples that came with FileMaker
  10296. Pro 2.0 or those on gaea seem to cover this. For example if I save a
  10297. script:
  10298.  
  10299. on foo()
  10300. display dialog "Warning Text" buttons "Ok" default button "Ok" with icon note
  10301. end foo
  10302.  
  10303. as stay open with a name of "Test app" and launch it from the desktop then
  10304. create a separate script with the text: tell application "Test app" to
  10305. foo()
  10306.  
  10307. then foo is run. How do I do this from FileMaker Pro 2.0 entering it in the
  10308. script text box doesn't work nor doest playing with the pop-up menu above.
  10309. Do I have to define the type of apple event?
  10310.  
  10311. Any help greatky appreciated, Neil.
  10312.  
  10313. Neil Christie       |Voice/Fax: 0131 229 6507
  10314. 14 West Castle Road |E-Mail:    Neil@christie.demon.co.uk
  10315. Edinburgh           |-------------------------------------
  10316. EH10 5AU            |Apple Macintosh Centris 660AV 8/230 CD.
  10317. Scotland            |System 7.1, running PPP on a 14.4K modem
  10318. =========================================================================
  10319. Date:         Mon, 19 Sep 1994 09:30:00 +1200
  10320. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10321. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10322. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  10323.               NZ" <LDO@WAIKATO.AC.NZ>
  10324. Subject:      Re: Digital Signatures (Digisign)
  10325.  
  10326. Dean Kirstein <USDDAK@VTVM1.CC.VT.EDU> writes:
  10327.  
  10328. >I am trying to use the Digisign utility to have an Applescript automaticly
  10329. >sign a file and also "verify" it as well. The Digisign does not appear to be
  10330. >scriptable?
  10331.  
  10332. It wouldn't help you if it were. DigiSign doesn't sign things, it's only for
  10333. creating and approving signers (which are what you actually use to sign things).
  10334. There are system calls available to any AOCE-aware application, for actually
  10335. using signers to sign things, and verifying signatures. When you drop a file
  10336. on a signer to sign it, the calls are being done by the Finder.
  10337.  
  10338. >Has anyone done any work with the Digisign or digital signatures and
  10339. >Applescript?
  10340.  
  10341. I have a couple of HyperCard externals that do signing and verification.
  10342. They represent the signature as a hex string (about 2.5K in size for my own
  10343. signer). If there's enough interest, I guess I could release these...
  10344.  
  10345. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  10346. Info & Tech Services Division              fax: +64-7-838-4066
  10347. University of Waikato            electric mail: ldo@waikato.ac.nz
  10348. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  10349. =========================================================================
  10350. Date:         Mon, 19 Sep 1994 10:48:00 +1200
  10351. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10352. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10353. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  10354.               NZ" <LDO@WAIKATO.AC.NZ>
  10355. Subject:      Re: Localtalk to Ethernet Script
  10356.  
  10357. Preston Holmes <pholmes@UCSD.EDU> writes:
  10358.  
  10359. >I'm pretty sure that most control panels are not recordable or even
  10360. >scriptable.
  10361.  
  10362. Correct. There are *NO* scriptable control panels. This is because they
  10363. do not have their own process context, but run within the Finder's context.
  10364. In order for them to be scriptable, they would have to install AppleEvent
  10365. handlers into the Finder's context. This might be OK as long as the control
  10366. panel was open, but what do you do when it's closed?
  10367.  
  10368. > The exception being the 'views' control panel.
  10369.  
  10370. It's not really an exception, because it isn't a real control panel. Open
  10371. it with ResEdit: do you see any code?
  10372.  
  10373. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  10374. Info & Tech Services Division              fax: +64-7-838-4066
  10375. University of Waikato            electric mail: ldo@waikato.ac.nz
  10376. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  10377. =========================================================================
  10378. Date:         Mon, 19 Sep 1994 15:13:16 +1200
  10379. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10380. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10381. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  10382. Subject:      Script Tools
  10383.  
  10384. I was having a go with the Script Tools (1.3) package, in particular the
  10385. Regular Expressions part. I tried the example in the docs, which came up
  10386. with a syntax error.
  10387.  
  10388. set pattern to compile regular expression "This (.*) test"
  10389. substitute regular expression pattern of "This is a test" with "---\1--"
  10390.  
  10391. When I put an extra backslash in the replacement pattern to get it to work,
  10392. Script Editor always crashes.  What gives?
  10393.  
  10394. BTW, I'm not very familiar with grep, so is this the right syntax for
  10395. replacing a CR in a var with "<P>"?
  10396.  
  10397. set pattern to compile regular expression "\\r"
  10398. set var 2 to substitute regular expression pattern of var1 with "<p>"
  10399.  
  10400.  
  10401. _________________________________________________________________________
  10402. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  10403. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  10404. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  10405. =========================================================================
  10406. Date:         Sun, 18 Sep 1994 23:55:18 -0500
  10407. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10408. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10409. From:         Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
  10410. Subject:      MACSCRPT Digest - 15 Sep 1994 to 16 Sep 1994
  10411.  
  10412. >>>>> "JBaxter" writes:
  10413.  
  10414.     >> ... and I'm having real problems with a script app quiting with
  10415.     >> an error of type 1 or an out of memory -108 error.  I can't
  10416.     >> figure it out script wise.  The problem might be is that I'm
  10417.     >> loading a rather large (35K) library, is this my problem - will
  10418.     >> I have to split this into a smaller libraries for their
  10419.     >> specific uses.
  10420.  
  10421.     JBaxter> Try giving the applet more memory (in the usual way for
  10422.     JBaxter> an application, twiddle with the memory assignment in its
  10423.     JBaxter> Get Info box).  Many are given more than they need...some
  10424.     JBaxter> are not given enough.  Someday, there may be one for
  10425.     JBaxter> which the default 200K is just right.
  10426.  
  10427. This was what i was referring to re the memory leakage dangers. For
  10428. some reason applets are very prone to breaking their heap wide open.
  10429. Anyone out there know why?
  10430.  
  10431. Jason
  10432.  
  10433. --
  10434. Are you trying to say waffles are       |      Jason Frankovitz
  10435. diuretics, or that consuming diuretics  |      Bloomington, IN
  10436. makes you waffle?                       |      jfrankov@indiana.edu
  10437. =========================================================================
  10438. Date:         Sun, 18 Sep 1994 23:35:11 -0800
  10439. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10440. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10441. From:         Preston Holmes <pholmes@UCSD.EDU>
  10442. Subject:      Re: MACSCRPT Digest - 15 Sep 1994 to 16 Sep 1994
  10443.  
  10444. >>>>>> "JBaxter" writes:
  10445. >
  10446. >    >> ... and I'm having real problems with a script app quiting with
  10447. >    >> an error of type 1 or an out of memory -108 error.  I can't
  10448. >    >> figure it out script wise.  The problem might be is that I'm
  10449. >    >> loading a rather large (35K) library, is this my problem - will
  10450. >    >> I have to split this into a smaller libraries for their
  10451. >    >> specific uses.
  10452. >
  10453. >    JBaxter> Try giving the applet more memory (in the usual way for
  10454. >    JBaxter> an application, twiddle with the memory assignment in its
  10455. >    JBaxter> Get Info box).  Many are given more than they need...some
  10456. >    JBaxter> are not given enough.  Someday, there may be one for
  10457. >    JBaxter> which the default 200K is just right.
  10458. >
  10459. >This was what i was referring to re the memory leakage dangers. For
  10460. >some reason applets are very prone to breaking their heap wide open.
  10461. >Anyone out there know why?
  10462. >
  10463. >Jason
  10464.  
  10465.  
  10466.  
  10467. Yes PLEASE, I tried JBaxter's advice to no avail.  I have not been able to
  10468. get the store script command to work reliably with storing even relatively
  10469. small libraries (only properties) The script starts storing the object
  10470. takes awhile then returns and error -108, but not always (seems to be when
  10471. much of the object has been changed).  Although a crude tool, the "about
  10472. this mac" window shows no climbing mem usage.  I need load and store script
  10473. to share properties between two scripts but keep running into this BUG.  Is
  10474. anyone else having this much trouble with this???
  10475.  
  10476. BTW the Error seems to be coming from the applescript system not the finder
  10477.         The error is in saving changes to the script in which the store
  10478. script command resides, not the script being stored.
  10479.  
  10480. I have no idea how else to share properties between scripts!!!
  10481.  
  10482. Thanks for any help and sorry for the public frustrations...
  10483.  
  10484. -Preston
  10485.  
  10486.  
  10487. --
  10488. Preston Holmes                  (h)619-453-9209
  10489. Dept. of Neuroscience, UCSD
  10490. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  10491. =========================================================================
  10492. Date:         Mon, 19 Sep 1994 08:49:43 +0200
  10493. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10494. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10495. From:         "Dr. Michael Bach" <bach@SUN1.RUF.UNI-FREIBURG.DE>
  10496. Subject:      Re: How can I tell FileMaker Pro to tell my app to do s'thing
  10497.  
  10498. Dear colleagues:
  10499.  
  10500. >Sorry if this is simple but none of the examples that came with FileMaker
  10501. >Pro 2.0 or those on gaea seem to cover this. For example if I save a
  10502. >script:
  10503. >
  10504. >on foo()
  10505. >display dialog "Warning Text" buttons "Ok" default button "Ok" with icon note
  10506. >end foo
  10507. >
  10508. >as stay open with a name of "Test app" and launch it from the desktop then
  10509. >create a separate script with the text: tell application "Test app" to
  10510. >foo()
  10511. >
  10512. >then foo is run. How do I do this from FileMaker Pro 2.0 entering it in the
  10513. >script text box doesn't work nor doest playing with the pop-up menu above.
  10514. >Do I have to define the type of apple event?
  10515.  
  10516. Since I had this very problem and with help from Marco Strehler
  10517. <strehler@FVMED.UNIZH.CH> got it solved, I'll post it to the group.
  10518. You need to write your event handlers in the generic way like:
  10519.  
  10520. on <<event FMPRmyev>> theParameter
  10521.   --do something with the supplied parameters, like:
  10522.   activate
  10523.   display dialog theParamter as text
  10524. end
  10525.  
  10526. The "<<" are a single character and have to be entered as option-Q (on my
  10527. keyboard). The program is saved as "stay open" and run.
  10528.  
  10529. In filemaker you make a script sending "other" events (if that's what its
  10530. called in English), giving a type like "FMPR" and event ID "myev" to fit
  10531. the example above. The parameter can come from a field or from the text in
  10532. the script dialog in Filemaker. Both class and ID are arbitrary, but it may
  10533. make sense to use the application signature as class.
  10534.  
  10535. There does not seem to be a way to send lists or a number of parameters.
  10536.  
  10537. Greetings, Michael.
  10538.  
  10539. Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
  10540. D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
  10541. =========================================================================
  10542. Date:         Mon, 19 Sep 1994 08:11:33 -0400
  10543. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10544. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10545. From:         Bill Bedford <billb@MOUSA.DEMON.CO.UK>
  10546. Subject:      Timing Problems
  10547.  
  10548. For a first attempt at scripting I have started to write three scripts that
  10549. I can use to connect with my dialup PPP account. I have found some problems
  10550. which I can't solve.
  10551.  
  10552. The first script dails my account sends mail with Eudora, receives mail
  10553. with AddMail, receives News using MacSlurp, and writes an entry into a log,
  10554. so I know how much the call has cost.
  10555.  
  10556. At the moment I have a dialog box to make the script wait until MacSlurp
  10557. finishes. Is there a neater way of writing a wait.....until loop?
  10558. Ideally I would like to use an AE from MacSlurp to start the closedown sequence.
  10559. MacSlurp is AE aware but not scriptable.
  10560.  
  10561. The second project involves two scripts one to dial up and open Anarchie or
  10562. MacWeb and the other to close everything down and record the time the line
  10563. was open. Is there any way that I can store a time from the first script so
  10564. that the second script can use it?
  10565. I have to use two scripts because the dialogue boxes are modal
  10566.  
  10567. Thanks in advance
  10568.  
  10569.  
  10570. ------------------------------------------------------------------------
  10571. Bill Bedford                                   Designer of Photo-Etches
  10572. billb@mousa.demon.co.uk
  10573. +44 9505 327
  10574.  
  10575.          Living on a island gives the world a different perspective
  10576. ------------------------------------------------------------------------
  10577. =========================================================================
  10578. Date:         Mon, 19 Sep 1994 10:09:59 -0800
  10579. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10580. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10581. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  10582. Subject:      Disabling cancel (cmd-.) possible?
  10583.  
  10584. Is there a way to temporarily disable canceling the execution of a script?
  10585. There is a point in a script for a very brief period of time (less than two
  10586. seconds) that could cause loss of data for the user if they cancelled. It's
  10587. not likely they'll cancel at that point but it is possible.
  10588.  
  10589. Thanks,
  10590.  
  10591. Greg Francis
  10592.  
  10593. __________________________________________________________________________
  10594. Greg Francis                | STEP/Star Schools Project
  10595. Research and Development    | Educational Service District 101, Spokane WA
  10596. Technical Support Staff     | Bringing the best in K-12 distance education
  10597. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  10598. =========================================================================
  10599. Date:         Mon, 19 Sep 1994 12:34:34 -0700
  10600. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10601. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10602. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10603. Subject:      Re: Disabling cancel (cmd-.) possible?
  10604.  
  10605. >Is there a way to temporarily disable canceling the execution of a script?
  10606. >There is a point in a script for a very brief period of time (less than two
  10607. >seconds) that could cause loss of data for the user if they cancelled. It's
  10608. >not likely they'll cancel at that point but it is possible.
  10609.  
  10610. I can't think of any.  If you can't redo the script so that the data loss
  10611. is impossible, you may have to move the dangerous operations into a
  10612. Scripting Addition or a small application, where you would have more
  10613. control.
  10614.    --John
  10615.  
  10616. --
  10617. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10618. =========================================================================
  10619. Date:         Mon, 19 Sep 1994 18:07:51 EDT
  10620. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10621. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10622. From:         Mike Limon <MALimon@AOL.COM>
  10623. Subject:      Re: my own question
  10624.  
  10625. >>Is the only way to have an applet in the startup items folder constantly
  10626. checking the time & date or what?<<
  10627.  
  10628. I like to use QuicKeys to time launch an applet.
  10629. =========================================================================
  10630. Date:         Mon, 19 Sep 1994 19:08:27 U
  10631. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10632. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10633. From:         Shawn Connelly <sconnelly@QM.PRUBANK.COM>
  10634. Subject:      Checking a Frontier table
  10635.  
  10636.                  Checking a Frontier table
  10637. I would like to find a script that when pass a table address and a value,
  10638. checks to see if the value is equal to any element of the table. I'm sure
  10639. someone has had to write this, and I don't have the time, and even want to
  10640. re-invent the wheel.
  10641.  
  10642. Thanks.
  10643.  
  10644.  ------------------------------------------------------------------------
  10645.  Shawn Connelly                          |  Computers are useless. They
  10646.  The Prudential Bank                     |   can only give you answers.
  10647.  Two Concourse Pkwy, #400                |    - Pablo Picasso
  10648.  Atlanta, GA 30328                       |
  10649.  Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  10650. =========================================================================
  10651. Date:         Tue, 20 Sep 1994 00:34:56 -0500
  10652. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10653. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10654. From:         Atul Butte <Atul_Butte@BROWN.EDU>
  10655. Subject:      ANNOUNCING TCP/IP SCRIPTING ADDITION 1.1 (LONG)
  10656.  
  10657. I am now sending a new version of the TCP/IP Scripting Addition (version
  10658. 1.1) to the gaea.kgs.ukans.edu AppleScript archives.  I think Fred Terry
  10659. will post a message when it becomes accessible.
  10660.  
  10661. You will find a 750K self-enclosed archive containing the TCP/IP Scripting
  10662. Addition version 1.1, a text document listing the changes from the 1.0
  10663. version, a text document detailing Licensing Information, two Word
  10664. documents containing Licensing Agreements (one for individuals, one for
  10665. site licenses), nine sample scripts (and a text document describing them),
  10666. and a Word document describing the Programming Instructions.
  10667.  
  10668. Please note that this release is intended for personal use only.  Using any
  10669. of the new commands or options in version 1.1 will display a reminder to
  10670. register yourself as a user.  Information on registering the Scripting
  10671. Addition is described at the end of this message.  Users who have already
  10672. sent licensing fees or purchase orders will be getting this new version
  10673. (without the reminder messages) plus printed documentation in a Priority
  10674. Mail package.
  10675.  
  10676. TCP/IP Scripting Addition version 1.1 is the latest version of an
  10677. award-winning AppleScript scripting addition (first place in the "Best
  10678. Hack" category in the Everyday AppleScript Programming Competition). This
  10679. scripting addition (or osax) allows you to write scripts using MacTCP
  10680. commands in AppleScript.  Potential uses of this include sending e-mail or
  10681. files through a script, checking if users are logged on (via Finger),
  10682. automating FTP transfers, automating Gopher and NetNews, writing scripts to
  10683. check whether machines are up, UNIX lpr, and quickly writing many other
  10684. TCP/IP client-server programs.  When combined with FaceSpan, the potential
  10685. for rapid implementation of client-server applications is enormous.
  10686.  
  10687. The TCP/IP Scripting Addition works with AppleScript 1.0 or better, MacTCP
  10688. 2.0.4, and either FrontMost or FaceSpan.
  10689.  
  10690. There have been several important changes since the 1.0 version -- you will
  10691. need to recompile scripts which have been saved as text files.  In addition
  10692. to several bug fixes, most of the commands have new features:
  10693.  
  10694. 1. TCP READ can now return incoming data as any particular type, not just text.
  10695. 2. TCP WRITE can now send data of any type, not just text.
  10696. 3. TCP RECEIVE can now receive data or resource forks, or an entire file as
  10697. MacBinary.  It also supports receiving open files (file reference numbers
  10698. from OPEN FOR ACCESS).  It can also append incoming data onto an existing
  10699. file.
  10700. 4. TCP SEND can now send data or resource forks, or an entire file as
  10701. MacBinary.  It also supports sending open files (file reference numbers
  10702. from OPEN FOR ACCESS).
  10703. 5. TCP SHUTDOWN is a new command that lets you close either direction in
  10704. the full-duplex TCP/IP connection.
  10705. 6. TCP DEBUG DUMP BUFFER is a new command that lets you peek at the
  10706. characters waiting to be read without removing them from the stream.
  10707. 7. TCP STATUS now returns connection codes that better detail half-closed
  10708. connections.
  10709. 8. TCP CLOSE is now done asynchronously, so that scripts can connect to TCP
  10710. servers on the same Macintosh.
  10711. 9. TCP CONNECT now supports connecting from a specified port, and now works
  10712. asynchronously for self-send support.
  10713. 10. TCP NAME TO ADDRESS is a new command that takes a hostname and returns
  10714. an IP address.
  10715. 11. TCP ADDRESS TO NAME is a new command that takes an IP address and
  10716. returns a hostname.
  10717.  
  10718. (plus other new features)
  10719.  
  10720. There are nine sample programs included with this 1.1 release of the TCP/IP
  10721. Scripting Addition.  You may look at these sample programs and write your
  10722. own based on these.  Most of the sample programs (all but the FrontMost
  10723. programs) are provided as both compiled scripts and text files (to ease
  10724. compatibility with AppleScript 1.0), but all the scripts have really only
  10725. been tested with AppleScript 1.1.
  10726.  
  10727. 1. Drag and Drop FTP
  10728.  
  10729. Launch this Script Editor application by itself, then enter the destination
  10730. host, your account name on that host, the destination directory on that
  10731. host in which to store the files, then the type of file transfer you would
  10732. like (MacBinary, Text, or raw Binary). After the application quits, drag
  10733. any files onto the application. Enter your password and the files will be
  10734. transferred to the destination host using the FTP protocol.
  10735.  
  10736. 2. Run and Get FTP
  10737.  
  10738. Launch this Script Editor application by itself and enter the FTP host,
  10739. your user-id on that host, the source directory on that host in which to
  10740. find the files, the type of file transfer you would like (MacBinary, Text,
  10741. or raw Binary), and into which directory on your Macintosh you would like
  10742. the files downloaded. Finally, enter your password and the files will be
  10743. transferred from the destination host using the FTP protocol.
  10744.  
  10745. 3. FTP Send Client
  10746.  
  10747. This application is similar to the Script Editor Drag and Drop FTP
  10748. described above, except it uses a FrontMost (i.e. FaceSpan) interface to
  10749. set the file transfer parameters and it uses a progress bar to detail its
  10750. progress.
  10751.  
  10752. 4. FTP Receive Client
  10753.  
  10754. This application is similar to the Script Editor Run and Get FTP described
  10755. above, except it uses a FrontMost (i.e. FaceSpan) interface to set the file
  10756. transfer parameters and it uses a progress bar to detail its progress.  Use
  10757. this and the previous sample script as backup and restore programs!
  10758.  
  10759. 5. Baby Telnet
  10760.  
  10761. Run this Script Editor script and enter the hostname to which you would
  10762. like to Telnet. Then enter the type of terminal you would like to emulate
  10763. (I suggest sticking to VT100, but if you change this, enter it in all
  10764. caps). After a few moments (during which the script handles Telnet Options
  10765. Negotiations), Scriptable Text Editor will open and you will be presented
  10766. with the login message. This script will prompt you with a ">" prompt. Type
  10767. your text after the ">" and press return at the end of the line. Everything
  10768. the host sends to you will be surrounded by bracket characters ("[" and
  10769. "]").
  10770.  
  10771. 6. Finger
  10772.  
  10773. Launch this application, then enter an internet host name and account to
  10774. check. This program will use the Finger protocol to get more information
  10775. about that account (like last login time, office phone number, etc). The
  10776. results are placed in a new Scriptable Text Editor window.
  10777.  
  10778. 6. FrontMost Finger Client
  10779.  
  10780. This program is similar to the previous one, but uses a FrontMost interface.
  10781.  
  10782. 7. Send Mail
  10783.  
  10784. Run this script, then enter your e-mail host, account, and a subject line
  10785. when prompted. This program will send a simple message to that account,
  10786. using the SMTP protocol.
  10787.  
  10788. 8. Gopher Server
  10789.  
  10790. Drag this application to a folder containing text files, then launch the
  10791. application. The text files in its folder (and those in any subfolder) will
  10792. be made available through Gopher. Use Gopher to connect to your Macintosh
  10793. at port 70 (the default for Gopher) and start browsing.
  10794.  
  10795. 9. Gopher Client
  10796.  
  10797. Gopher Client is a Gopher browser (like TurboGopher, Sextant, etc). For
  10798. full use, Gopher Client requires Scriptable Text Editor, JPEG View, the
  10799. TCP/IP Scripting Addition (osax). Gopher Client is a basic implementation
  10800. of a gopher client (just like TurboGopher).  However, it currently doesn't
  10801. support searching, Mac files, sound files, movies, or anything other than
  10802. folders, text files, and GIF files. The text files you read are limited to
  10803. 32K (because the Gopher Client uses Scriptable Text Editor to show you the
  10804. text).  This limitation may not be present if you modify it to use another
  10805. scriptable word processor.
  10806.  
  10807.  
  10808. If you find any problems with the Scripting Addition or its documentation,
  10809. or if you have suggestions for future versions, please let me know.
  10810.  
  10811. Please take the time to read and follow the Licensing Information provided
  10812. with the package (I don't think it would be appropriate for me to mention
  10813. the various options and fees directly in this forum).  If you use the
  10814. TCP/IP Scripting Addition for your own personal use, the licensing fee is
  10815. FREE.  Otherwise, if you will be using the Scripting Addition for ANY
  10816. business, company, or university related task, or if you wish to distribute
  10817. the Scripting Addition, please read the Licensing Information document for
  10818. more details.  If you pay a licensing fee, I will send you the latest
  10819. version (without the registration reminders) and printed documentation.
  10820.  
  10821. Thank you very much for your continued support!
  10822.  
  10823.  
  10824. -- Atul
  10825.  
  10826. DISCLAIMER: This package has nothing to do with Brown University or the
  10827. Brown University School of Medicine.
  10828. +------------------------------------------------------------------
  10829. | Atul Butte (MD '95)
  10830. | Brown University School of Medicine
  10831. |
  10832. | atul_butte@brown.edu
  10833. =========================================================================
  10834. Date:         Tue, 20 Sep 1994 08:49:26 GMT
  10835. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10836. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10837. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  10838. Organization: commstalk, & Full Moon Software
  10839. Subject:      Scripts as direct objects - an AS oddity
  10840.  
  10841. Hi folks,
  10842.  
  10843. I'm just surfacing for air after completing the work to make
  10844. ScriptWizard version 1.1 (forthcoming - this is not an "announcement")
  10845. scriptable. It's something I noticed for the second time during this
  10846. project (it affected AgB too) and this note may save some time for
  10847. other developers (alternatively, you might be able to tell me what bit
  10848. of the AS documentation I missed the official explanation in :-) ).
  10849.  
  10850.  
  10851. Scripts as direct objects
  10852. -------------------------
  10853.  
  10854. If a scriptable application wants to receive a script as the direct
  10855. object of an Apple event message, the behavior of AppleScript might
  10856. not be exactly what one expected. For instance, if the name of the
  10857. AE message is "do to script" then this syntax seems OK:
  10858.  
  10859.   tell application "thingy"
  10860.         do to script script_object -- script_object is a script object
  10861.   end tell
  10862.  
  10863. But the above won't work: AppleScript will try to pass the "do to
  10864. script" message to the script_object directly, and won't dispatch it to
  10865. the application. So the script will fail with a message like:
  10866.         script <<script_object>> didn't understand "do to script"
  10867. It probably would work if the script object was being passed
  10868. as another named parameter of the Apple event, but not if the script
  10869. object is supposed to be passed as the direct object.
  10870.  
  10871. It _does_ work if you modify the syntax by adding a "script" keyword
  10872. before the reference to the script object, like so:
  10873.  
  10874.   tell application "thingy"
  10875.         do to script script script_object -- note the extra "script"
  10876.   end tell
  10877.  
  10878. Ugly! But it works by creating an object specifier that contains the
  10879. script object, and passing that as the direct object of the Apple event
  10880. message, which is correctly dispatched to the target application. The
  10881. object specifier looks like this:
  10882.  
  10883.         key form: absolute position
  10884.         want type: script
  10885.         key data: the script object
  10886.         container: null
  10887.  
  10888. Which means that the application that receives the message must be
  10889. able to cope with object specifiers that contain actual data, as well
  10890. as ospecs that describe application-domain objects.
  10891.  
  10892. Advanced note: There is an execute-time "mode flag" in AppleScript 1.1
  10893. that should block the above-described dispatching behavior but since
  10894. the Apple Script Editor doesn't use it, our ScriptWizard can't use it
  10895. either (I think the flag's kOSAModeDontDispatchToDirectObject).
  10896.  
  10897.  
  10898. best regards, Paul
  10899.  
  10900. +------------------------------------------------------------------+
  10901. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  10902. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  10903. | & Full Moon Software, Inc               || US ph: 408 253 7199
  10904. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  10905. =========================================================================
  10906. Date:         Tue, 20 Sep 1994 05:42:10 -0500
  10907. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10908. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10909. From:         Steve Alex <steve_alex@AIDT.EDU>
  10910. Subject:      Re> How can I strip trailing return/blank lines from a string
  10911.  
  10912.  ------ From: Macintosh Scripting Systems, Sun, Sep 18, 1994 ------
  10913. Neil Christie wrote
  10914. > I have tried various ways to strip trailing returns/blank lines from a
  10915. > string x, usually along the lines of:
  10916.  
  10917. > while last paragraph of x is ""
  10918. > set x to paragraphs 1 thru ((count paragraphs in x) - 1) of x
  10919. > end while
  10920.  
  10921. > I think that's how in went, I then get erros of can't get last paragraph os
  10922. > and then the lines of the script in separate speech brackets. Adding set
  10923. > AppleScript's text item delimiters to ... or as text as string etc doesn't
  10924. > help. I've tried various other things but none of them work.
  10925.  
  10926. I'am still not straight on text item delimiters, but I got this to work. Your
  10927. major problem is you forgot to tell it to save para 1 thru x " as string"
  10928.  
  10929. set origDelim to AppleScript's text item delimiters
  10930. set AppleScript's text item delimiters to {return}
  10931. set x to "line one and a" & return & "line two and a" & return & |_
  10932. "" & return & "line three" & return & return
  10933. display dialog x & (count paragraphs in x)
  10934. repeat while last paragraph of x is ""
  10935.         set x to paragraphs 1 thru ((count paragraphs in x) - 1) of x as string
  10936. end repeat
  10937. display dialog x & (count paragraphs in x)
  10938. set AppleScript's text item delimiters to origDelim
  10939.  
  10940. Steve Alex
  10941. =========================================================================
  10942. Date:         Tue, 20 Sep 1994 09:20:31 -0400
  10943. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10944. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10945. From:         Tom Price <price@LL.MIT.EDU>
  10946. Subject:      unsubscribe
  10947.  
  10948. Please send info on how to unsubscribe to this group
  10949. =========================================================================
  10950. Date:         Tue, 20 Sep 1994 07:01:06 -0800
  10951. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10952. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10953. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  10954. Subject:      Disabling cancel (cmd-.) possible?
  10955.  
  10956. I don't think there's a perfect solution for disabling Command/., but here
  10957. is an idea.  Use a TRY/ON ERROR block to ignore Command/. (userCanceledErr)
  10958. and place that within a while loop.
  10959.  
  10960. set stillRunning to true
  10961. repeat while strillRunning = true
  10962.     try
  10963.             -- do length uninteruptable operation
  10964.             set stillRunning to false
  10965.     on error
  10966.     end try
  10967. end repeat
  10968.  
  10969. This way, single Command/. keys will be caught and ignored.  The problem is
  10970. that quick multiple Command/. keys may get noticed by AS.
  10971.  
  10972. I checked this out on my system and it works quite well.
  10973.  
  10974. Just a thought
  10975. -Mark
  10976. =========================================================================
  10977. Date:         Tue, 20 Sep 1994 09:07:18 -0500
  10978. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10979. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10980. From:         Fred Terry <pfterry@LKS.CSI.COM>
  10981. Subject:      Re: ANNOUNCING TCP/IP SCRIPTING ADDITION 1.1 (LONG)
  10982. In-Reply-To:  Your message of "Tue, 20 Sep 94 00:34:56 CDT"
  10983.  
  10984. >I am now sending a new version of the TCP/IP Scripting Addition (version
  10985. >1.1) to the gaea.kgs.ukans.edu AppleScript archives.  I think Fred Terry
  10986. >will post a message when it becomes accessible.
  10987.  
  10988. You'll find it in
  10989.  
  10990. ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-1-1.sea.hqx
  10991.  
  10992. Have fun.
  10993.  
  10994. pf
  10995. =========================================================================
  10996. Date:         Tue, 20 Sep 1994 06:45:01 -0800
  10997. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10998. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  10999. From:         Jon Wiederspan <jonwd@TJP.WASHINGTON.EDU>
  11000. Subject:      [1]unsubscribe
  11001.  
  11002.                       [1]unsubscribe                               9/20/94
  11003.  
  11004. Instructions for the Mailing List UWWeb-l
  11005.  
  11006. This mailing list is for U of W users only to discuss Web development
  11007. on campus.  I anticipate discussion along the lines of the following:
  11008.   - Campus or departmental policies for Web use and development
  11009.   - Announcement of campus sites or services
  11010.   - Requests for help from on-campus personnel
  11011.   - Discussion of potential cooperative efforts around campus for
  11012. non-specific
  11013.     information (like local restaurants, events, jogging trails, etc.), and
  11014.   - Reports of problems encountered (such as security problems)
  11015.     that may affect other groups on campus.
  11016.  
  11017. "On campus" should loosely refer to any of the many sites involved in the
  11018. University of Washington (e.g., Harboview).
  11019.  
  11020. The mailserver is a Macintosh running MailShare.  MailShare is
  11021. set so that messages sent to the discussion group appear to
  11022. each member of the group as if sent from the author, *not* the mailing list.
  11023. This is a little different from most lists, but should prevent the
  11024. proliferation
  11025. of side comments that affects many groups.  I hope we can keep this list
  11026. running
  11027. with a good ratio of useful content to 'noise'.
  11028.  
  11029. *********** To Post a Message ****************
  11030. Messages for the list should be sent to: UWWeb-l@rashoman.tjp.washington.edu
  11031.  
  11032. *********** To Reply to a Posted Message *****
  11033. All messages will be return-addressed to the original poster, not to the
  11034. list.
  11035. To reply to the list, remember to change the address back to:
  11036. UWWeb-l@rashoman.tjp.washington.edu
  11037.  
  11038. *********** To Unsubscribe *******************
  11039. Send an e-mail message to: UWWeb-request@rashoman.tjp.washington.edu
  11040. Subject:  Unsubscribe
  11041. Include your name in the body of the message.
  11042. **NOTE** The Subject line *must* contain the
  11043. word "Unsubscribe" or the mail will not be filed properly.
  11044.  
  11045. *********** More Information *****************
  11046. Questions regarding the operation of this list should
  11047. be directed to "UWWeb-request@rashoman.tjp.washington.edu"
  11048. =========================================================================
  11049. Date:         Tue, 20 Sep 1994 13:40:23 GMT
  11050. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11051. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11052. From:         "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
  11053. Organization: The Personal Online Source
  11054. Subject:      Disabling cancel (cmd-.) possible? [A]
  11055.  
  11056. >Is there a way to temporarily disable canceling the execution of a >script?
  11057. >There is a point in a script for a very brief period of time (less than >two
  11058. seconds) that could cause loss of data for the user if they >cancelled.It's
  11059. not likely they'll cancel at that point but it is possible.
  11060.  
  11061. To catch it you can use  a "TRY"-"ON ERROR" Handler. The arguments in the ON
  11062. ERROR line can help you to locate the interupted script part.
  11063.  
  11064. Andreas
  11065.  
  11066.  --------------------------------------------------------
  11067.  sent via  m a g n e t / +43-1-522-7-225 / info@magnet.at
  11068.  --------------------------------------------------------
  11069. =========================================================================
  11070. Date:         Tue, 20 Sep 1994 10:01:24 U
  11071. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11072. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11073. From:         Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
  11074. Subject:      Re: Checking a Frontier tabl
  11075.  
  11076.         Reply to:   RE>Checking a Frontier table
  11077. >I would like to find a script that when pass a table address and a value,
  11078. >checks to see if the value is equal to any element of the table. I'm sure
  11079. >someone has had to write this, and I don't have the time, and even want
  11080. >to re-invent the wheel.
  11081. >
  11082. > Thanks.
  11083. > Shawn Connelly
  11084.  
  11085.  
  11086.     The "defined" verb does exactly what you want.  It takes one argument:
  11087. the address whose existance you want to confirm.
  11088.  
  11089. --Richard Petty
  11090.  
  11091. +-------------------------------------------------------------------------+
  11092. |   Motorola                                   rwvr90@email.sps.mot.com   |
  11093. |   OE110                                                                 |
  11094. |   6501 West William Cannon Drive             Voice: (512) 891-2890      |
  11095. |   Austin, Texas  U.S.A.                      Fax:   (512) 891-3879      |
  11096. +-------------------------------------------------------------------------+
  11097. =========================================================================
  11098. Date:         Tue, 20 Sep 1994 09:33:03 EST
  11099. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11100. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11101. From:         Steve Harf <ccmail.kenan.com!steveh@KENAN.COM>
  11102. Subject:      Using XCMDs with AppleScript
  11103.  
  11104.      I downloaded from a local bulletin board a copy of "XCMD OSAX" version
  11105.      1.0 a11 (dated July 8,1993) with some sparse documentation.  Is a more
  11106.      recent version available?  Where can I get more information about "XCMD
  11107.      OSAX"?  What have people thought of this tool?  Apparently this osax from
  11108.      Apple allows some XCMDs to be used directly with AppleScript.  I was
  11109.      thinking of trying the Comm Toolbox XCMDs (also from Apple) with
  11110.      AppleScript.  Any thoughts, suggestions?
  11111.  
  11112.      - Steve Harf
  11113. =========================================================================
  11114. Date:         Tue, 20 Sep 1994 12:13:56 -0400
  11115. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11116. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11117. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  11118. Subject:      Re: How can I tell FileMaker Pro to tell my app to do s'thing
  11119.  
  11120. >Sorry if this is simple but none of the examples that came with FileMaker
  11121. >Pro 2.0 or those on gaea seem to cover this. For example if I save a
  11122. >script:
  11123. >
  11124. >on foo()
  11125. >display dialog "Warning Text" buttons "Ok" default button "Ok" with icon no=
  11126. te
  11127. >end foo
  11128. >
  11129. >as stay open with a name of "Test app" and launch it from the desktop then
  11130. >create a separate script with the text: tell application "Test app" to
  11131. >foo()
  11132. >
  11133. >then foo is run. How do I do this from FileMaker Pro 2.0 entering it in the
  11134. >script text box doesn't work nor doest playing with the pop-up menu above.
  11135. >Do I have to define the type of apple event?
  11136. >
  11137.  
  11138. 1. Upgrade to Filemaker 2.1 (v2 or v3 preferably)
  11139.  
  11140. 2. In Filemaker make a script which sends an applevent.  Select other.
  11141. Specify event class (I use FMPX) and a four letter event ID.
  11142.  
  11143. 3. In applescript add the following to your script
  11144.  
  11145. on =ABevent FMPXSPEC=BB
  11146.         foo()
  11147. end =ABevent FMPXSPEC=BB
  11148.  
  11149. on foo()
  11150. ...
  11151. end foo
  11152.  
  11153. where SPEC is a sample event ID and =AB is option-\ and =BB is option-shift-=
  11154. \.
  11155.  
  11156. That should do it.
  11157.  
  11158. Mark Hadfield
  11159. hadfield@sickkids.on.ca
  11160. The Hosptial For Sick Children
  11161. =========================================================================
  11162. Date:         Tue, 20 Sep 1994 17:15:09 --100
  11163. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11164. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11165. From:         Stefania Castellani <Stefania.Castellani@XEROX.FR>
  11166. Subject:      problems with Script Wizard 1.0
  11167.  
  11168. Hi everybody,
  11169.  
  11170. I was starting to use Script Wizard 1.0, and that is what's happened.....
  11171.  
  11172. I opened a script, which is actually an application, with Script Wizard 1.0.
  11173. I made some changes (not very dangerous, I thought...) closing then the script.
  11174.  
  11175. After that I was not able anymore to reopen the script neither
  11176. with Script Wizard or Script Editor.
  11177.  
  11178. The first returned me the following error message:
  11179. "I cannot open "the file" because of a program error"
  11180. The second the following error message:
  11181. "Could not read the file because the required resources were not found".
  11182.  
  11183. And apparently one of them changed the size of the script.
  11184.  
  11185. Moreover I am using an Hypercard interface that calls this script, but when
  11186. I try to do it I have a message like "resources not found".
  11187.  
  11188. A disaster....
  11189. Fortunally I have a safe copy of this script and of the Hypercard application,
  11190. but I should like to understand what's happened to avoid such a situation in
  11191. the future.
  11192.  
  11193. Any ideas?
  11194.  
  11195. Thanks in advance
  11196.  
  11197. Stefania
  11198. =========================================================================
  11199. Date:         Tue, 20 Sep 1994 11:17:53 EDT
  11200. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11201. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11202. From:         Danny Goodman <DGoodman@AOL.COM>
  11203. Subject:      Re: Scripts as direct objects - an AS oddity
  11204.  
  11205. >AppleScript will try to pass the "do to
  11206. >script" message to the script_object directly, and won't dispatch it to
  11207. >the application.
  11208.  
  11209. I'm going over the QuarkXpress scripting docs, and I see that they claim to
  11210. be able to handle this.  The example they provide is:
  11211.  
  11212. script theRealScript
  11213.   tell app "QuarkXpress"
  11214.     -- script statements
  11215.   end tell
  11216. end script
  11217.  
  11218. tell app "QuarkXpress"
  11219.   do script (theRealScript)
  11220. end tell
  11221.  
  11222. The claim is that the script "is processed completely within the
  11223. application."  Is that what you're trying to do?  Haven't tested it yet.
  11224.  
  11225. Danny
  11226. =========================================================================
  11227. Date:         Tue, 20 Sep 1994 10:47:25 U
  11228. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11229. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11230. From:         Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
  11231. Subject:      Re: Checking a Frontier tabl
  11232.  
  11233.         Reply to:   RE>Checking a Frontier table
  11234. >>I would like to find a script that when pass a table address and a value,
  11235. >>checks to see if the value is equal to any element of the table. I'm sure
  11236. >>someone has had to write this, and I don't have the time, and even want
  11237. >>to re-invent the wheel.
  11238. >>
  11239. >> Thanks.
  11240. >> Shawn Connelly
  11241. >
  11242. >
  11243. >   The "defined" verb does exactly what you want.  It takes one argument:
  11244. >the address whose existance you want to confirm.
  11245. >
  11246. >--Richard Petty
  11247.  
  11248. MY MISTAKE!!!  I misunderstood your question!
  11249.  
  11250. You'll need to write this yourself.  Of this I'm sure.  The nice thing is,
  11251. it's a rather trivial script.
  11252.  
  11253.  
  11254. on TableContains (TableToTest, TestValue) {
  11255.         local (TableIndex);
  11256.         for TableIndex = 1 to sizeOf (TableToTest^) {
  11257.                 if TableToTest^[TableIndex] == TestValue {
  11258.                         return (true)}};
  11259.         return (false)};
  11260.  
  11261. dialog.alert (TableContains (@root.newsTable, "Mark"))
  11262.  
  11263.  
  11264.     This can be made more robust, of course.  I included the calling
  11265. statement (dialog.notify) to show it being used.
  11266.  
  11267.     Sorry for the gaff...
  11268.  
  11269. --Richard Petty
  11270. =========================================================================
  11271. Date:         Tue, 20 Sep 1994 09:05:56 -0700
  11272. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11273. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11274. From:         Kevin Purcell <kevinpu@ATM.COM>
  11275. Subject:      Using AppleScript text delimiters
  11276.  
  11277. I have noticed that I don''t have quite the control over text delimiters as
  11278. I would like. I am essentiall trying to do something a bit like strtok().
  11279.  
  11280. For example, I am parsing strings like the following:
  11281.  
  11282. set oldDelimiters to delimiters of AppleScript to " "
  11283. set AppleScript's delimiters to " "
  11284. set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
  11285. get words of s
  11286. set AppleScript's delimiters to oldDelimiters
  11287.  
  11288. to return something like:
  11289.  
  11290.         {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
  11291.  
  11292. But I get:
  11293.  
  11294. {"bingo", "foo", "bar", "C", "\\", "foo", "\\", "bar.baz", "xyzzy", "plugh"}
  11295.  
  11296. It seems impossible to turn of this interpretation as text delimiters for
  11297. characters like "\:("" but it seems like "." is OK in a word!
  11298.  
  11299. The AppleScript langauge guide seems to imply that the original intention
  11300. was to provide a list of delimiters but there is no mention of what the
  11301. default set is or how to override it. Currently only the first of which
  11302. works in addition to the standard set.
  11303.  
  11304. Any suggestions?
  11305.  
  11306. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  11307. Attachmate Corp                   xenolith@halcyon.com
  11308. =========================================================================
  11309. Date:         Tue, 20 Sep 1994 09:06:03 -0700
  11310. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11311. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11312. From:         Kevin Purcell <kevinpu@ATM.COM>
  11313. Subject:      New AppleScript books
  11314.  
  11315. I ntoiced in MacTech J Aug 1994 an ad from M&T books for a new AS book
  11316. comeing in September:
  11317.  
  11318. Applied Apple Scripting by Thomas Trinko
  11319. Disk/book $35
  11320. ISBN 1-55851-330-7
  11321.  
  11322. Anyone seen this one yet?
  11323.  
  11324. Also whats the status of "Everyday AppleScript". When is it due to be published?
  11325.  
  11326. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  11327. Attachmate Corp                   xenolith@halcyon.com
  11328. =========================================================================
  11329. Date:         Tue, 20 Sep 1994 12:20:30 -0400
  11330. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11331. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11332. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  11333. Subject:      Re: Using AppleScript text delimiters
  11334. In-Reply-To:  <no.id> from "Kevin Purcell" at Sep 20, 94 09:05:56 am
  11335.  
  11336. --Kevin Purcell wrote:
  11337. >
  11338. >For example, I am parsing strings like the following:
  11339. >
  11340. >set oldDelimiters to delimiters of AppleScript to " "
  11341. >set AppleScript's delimiters to " "
  11342. >set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
  11343. >get words of s
  11344. >set AppleScript's delimiters to oldDelimiters
  11345.  
  11346.     I hope you are actually stating "text item delimiters" and not just
  11347. delimiters in your script. If you aren't, this won't even compile.
  11348.  
  11349. >to return something like:
  11350. >
  11351. >        {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
  11352. >
  11353. >But I get:
  11354. >
  11355. >{"bingo", "foo", "bar", "C", "\\", "foo", "\\", "bar.baz", "xyzzy", "plugh"}
  11356. >
  11357. >It seems impossible to turn of this interpretation as text delimiters for
  11358. >characters like "\:("" but it seems like "." is OK in a word!
  11359.  
  11360.     Your problem in the script is you are asking for "words of s." The
  11361. class word isn't effect by the text item delimiters. If you want to get
  11362. the result you are looking for you have to get the "text items of s."
  11363. This tells AppleScript to look at the current setting of the text item
  11364. delimiters and parse the string accordingly.
  11365.  
  11366. >The AppleScript langauge guide seems to imply that the original intention
  11367. >was to provide a list of delimiters but there is no mention of what the
  11368. >default set is or how to override it. Currently only the first of which
  11369. >works in addition to the standard set.
  11370.  
  11371.     Unfortunately, AppleScript only looks at the first item from a list
  11372. of delimiters. Hopefully, this is something that will be fixed in the
  11373. future. As for the default set, AppleScript defines it's standard text
  11374. item delimiter to {""}. Which means each character in a string is a text
  11375. item.
  11376.  
  11377. -Hades
  11378. =========================================================================
  11379. Date:         Tue, 20 Sep 1994 10:00:13 -0700
  11380. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11381. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11382. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11383. Subject:      Re: Disabling cancel (cmd-.) possible?
  11384.  
  11385. I don't like answering myself, but...in response to this:
  11386. >>Is there a way to temporarily disable canceling the execution of a script?
  11387. >>There is a point in a script for a very brief period of time (less than two
  11388. >>seconds) that could cause loss of data for the user if they cancelled. It's
  11389. >>not likely they'll cancel at that point but it is possible.
  11390. >
  11391.  
  11392. I previously said this:
  11393. >I can't think of any.  If you can't redo the script so that the data loss
  11394. >is impossible, you may have to move the dangerous operations into a
  11395. >Scripting Addition or a small application, where you would have more
  11396. >control.
  11397.  
  11398. But...command-. is under the control of the frontmost application.  If
  11399. something other than the script application is in front, it seems unlikely
  11400. that hitting command-. will cancel a running script.  Finder is generally
  11401. fairly benign with respect to command-. (although if your script uses the
  11402. Finder to do things, you would want to verify that moving Finder to the
  11403. front would be safe).
  11404.  
  11405.    --John
  11406.  
  11407. --
  11408. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11409. =========================================================================
  11410. Date:         Tue, 20 Sep 1994 10:00:22 -0700
  11411. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11412. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11413. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11414. Subject:      Re: Checking a Frontier table
  11415.  
  11416. >                 Checking a Frontier table
  11417. >I would like to find a script that when pass a table address and a value,
  11418. >checks to see if the value is equal to any element of the table. I'm sure
  11419. >someone has had to write this, and I don't have the time, and even want to
  11420. >re-invent the wheel.
  11421.  
  11422. Shawn,
  11423.    The findValue script below returns a list of names of cells in a table
  11424. which contain a value.  However, this form does its best to coerce each
  11425. cell to the type of the passed value (or the reverse, in some cases).  That
  11426. may not be what you want.  The findValue2 script checks for the type before
  11427. checking for equal values.
  11428.  
  11429.    Each script tested only "lightly".  The ^ characters are important.  If
  11430. you just want to find out whether at least one cell matches, the changes
  11431. are fairly obvious:  ditch the result list, return true if the test passes,
  11432. return false at the end of the script.
  11433.  
  11434. on findValue (adr, val) =AB find val in table at adr
  11435.     if typeOf (adr^) !=3D tableType
  11436.         scriptError ("Please pass the address of a table as the first param"=
  11437. )
  11438.     local (ix, result =3D {})
  11439.     for ix =3D 1 to sizeof (adr^)
  11440.         if adr^[ix] =3D=3D val
  11441.             result =3D result + nameOf (adr^[ix])
  11442.     return (result)
  11443. on findValue2 (adr, val) =AB find val in table at adr
  11444.     if typeOf (adr^) !=3D tableType
  11445.         scriptError ("Please pass the address of a table as the first param"=
  11446. )
  11447.     local (ix, result =3D {}, itsType =3D typeOf (val))
  11448.     for ix =3D 1 to sizeof (adr^)
  11449.         if typeOf (adr^[ix]) =3D=3D itsType && adr^[ix] =3D=3D val
  11450.             result =3D result + nameOf (adr^[ix])
  11451.     return (result)
  11452.  
  11453. --
  11454. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11455. =========================================================================
  11456. Date:         Tue, 20 Sep 1994 12:20:12 -0500
  11457. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11458. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11459. From:         Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
  11460. Subject:      Re: MACSCRPT Digest - 18 Sep 1994 to 19 Sep 1994
  11461. In-Reply-To:  <no.id> from "Automatic digest processor" at Sep 20,
  11462.               94 00:00:13 am
  11463.  
  11464. >
  11465. > Date:    Mon, 19 Sep 1994 12:34:34 -0700
  11466. > From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11467. > Subject: Re: Disabling cancel (cmd-.) possible?
  11468. >
  11469. > >Is there a way to temporarily disable canceling the execution of a script?
  11470. > >There is a point in a script for a very brief period of time (less than two
  11471. > >seconds) that could cause loss of data for the user if they cancelled. It's
  11472. > >not likely they'll cancel at that point but it is possible.
  11473. >
  11474. > I can't think of any.  If you can't redo the script so that the data loss
  11475. > is impossible, you may have to move the dangerous operations into a
  11476. > Scripting Addition or a small application, where you would have more
  11477. > control.
  11478. >    --John
  11479. >
  11480. > --
  11481. > jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11482. >
  11483.  
  11484. Can't you use a try... on error handler and trap -128 ("user
  11485. cancelled")?
  11486.  
  11487. Jason
  11488. --
  11489. Are you trying to say waffles are       |      Jason Frankovitz
  11490. diuretics, or that consuming diuretics  |      Bloomington, IN
  11491. makes you waffle?                       |      jfrankov@indiana.edu
  11492. =========================================================================
  11493. Date:         Tue, 20 Sep 1994 10:24:32 -0700
  11494. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11495. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11496. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  11497. Subject:      Cooperating with apps
  11498.  
  11499. Greetings,
  11500.  
  11501. Sometime back I wrote about switching application contexts:
  11502.  
  11503.         >Is there a more robust way of accomplishing a context switch?
  11504.  
  11505.         Given the Scriptable Finder, yes.  This should do the trick:
  11506.  
  11507.         tell application "Finder"
  11508.             set frontmost of process "Premiere @ 18Mb" to true
  11509.         end tell
  11510.  
  11511.         Without the Scriptable Finder, there may well be an osax (or 10)...I
  11512.         haven't looked.
  11513.  
  11514. In my situation I am developing for a studio which does not have the option of
  11515. getting the scriptable finder until (at earliest) Xmas break.  So, the question
  11516. remains unanswered.  In the absence of the scriptable finder, is there a robust
  11517. way of achieving context switches?
  11518.  
  11519. Thanks.
  11520.  
  11521. Michael
  11522. =========================================================================
  11523. Date:         Tue, 20 Sep 1994 11:07:12 -0700
  11524. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11525. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11526. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11527. Subject:      Re: Scripts as direct objects - an AS oddity
  11528.  
  11529. Danny Goodman writes...
  11530.  
  11531. >>AppleScript will try to pass the "do to
  11532. >>script" message to the script_object directly, and won't dispatch it to
  11533. >>the application.
  11534. >
  11535. >I'm going over the QuarkXpress scripting docs, and I see that they claim to
  11536. >be able to handle this.  The example they provide is:
  11537. >
  11538. >script theRealScript
  11539. >  tell app "QuarkXpress"
  11540. >    -- script statements
  11541. >  end tell
  11542. >end script
  11543. >
  11544. >tell app "QuarkXpress"
  11545. >  do script (theRealScript)
  11546. >end tell
  11547. >
  11548. >The claim is that the script "is processed completely within the
  11549. >application."  Is that what you're trying to do?  Haven't tested it yet.
  11550.  
  11551. Quark (in the form of Dave Shaver) extended the Miscellaneous suite Do
  11552. Script event in a couple of ways.
  11553.  
  11554. First, if the direct object is a string (as it usually is), there is an
  11555. optional second parameter (terminology "script type", code 'XSCT') which
  11556. gives the id of the scripting component (default is AppleScript) to pass
  11557. the script text to.  So one could say
  11558.  
  11559. tell app "QuarkXPress"
  11560.    do script "msg (\"Hi, there\")" script type "LAND"
  11561. end tell
  11562.  
  11563. to run that little script as a Frontier script.
  11564.  
  11565. Second, the direct object may be a script object, as noted above.
  11566.  
  11567. Third...I believe that if the direct object is an alias, the file referred
  11568. to can be a file containing a script resource in the usual form.  [That's
  11569. from memory.]
  11570.  
  11571. I like those extensions...the 'misc'/'dosc' handler in my copy of Frontier
  11572. implements much the same extensions (I haven't released that to the world
  11573. yet).
  11574.    --John
  11575.  
  11576. --
  11577. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11578. =========================================================================
  11579. Date:         Tue, 20 Sep 1994 11:07:17 -0700
  11580. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11581. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11582. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11583. Subject:      Re: Using AppleScript text delimiters
  11584.  
  11585. >I have noticed that I don''t have quite the control over text delimiters as
  11586. >I would like. I am essentiall trying to do something a bit like strtok().
  11587. >
  11588. >For example, I am parsing strings like the following:
  11589. >
  11590. >set oldDelimiters to delimiters of AppleScript to " "
  11591. >set AppleScript's delimiters to " "
  11592. >set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
  11593. >get words of s
  11594. >set AppleScript's delimiters to oldDelimiters
  11595. >
  11596. >to return something like:
  11597. >
  11598. >        {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
  11599. >
  11600. >But I get:
  11601. >
  11602. >{"bingo", "foo", "bar", "C", "\\", "foo", "\\", "bar.baz", "xyzzy", "plugh"}
  11603. >
  11604. >It seems impossible to turn of this interpretation as text delimiters for
  11605. >characters like "\:("" but it seems like "." is OK in a word!
  11606. >
  11607. >The AppleScript langauge guide seems to imply that the original intention
  11608. >was to provide a list of delimiters but there is no mention of what the
  11609. >default set is or how to override it. Currently only the first of which
  11610. >works in addition to the standard set.
  11611.  
  11612. 1.  The text item delimiters delimit text items.  [Parsing aide:  The "text
  11613. item delimiters" delimit "text items".]  They are also used as breaks when
  11614. AppleScript coerces a list to a string.  They do not delimit words.
  11615.  
  11616. 2.  AppleScript's default text item delimiters are {""}.
  11617.  
  11618. 3.  AppleScript through version 1.1 ignores every element of its text item
  11619. delimiters except for the first.  I've also seen this on real or virtual
  11620. paper, but can't point to where.
  11621.  
  11622. 4.  Scriptable Text Editor's default text item delimiters are {","} (page
  11623. 319 of AppleScript Language Guide).
  11624.  
  11625.   I think I've seen items 2 and 3 on virtual or real paper from Apple, but
  11626. I can't point to it.  They can be determined experimentally.  And how would
  11627. the breaking of coerced lists be handled by some future AppleScript version
  11628. which uses the whole list???
  11629.  
  11630.    --John
  11631.  
  11632. --
  11633. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11634. =========================================================================
  11635. Date:         Tue, 20 Sep 1994 19:59:37 GMT
  11636. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11637. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11638. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  11639. Organization: commstalk, & Full Moon Software
  11640. Subject:      Re: problems with Script Wizard 1.0
  11641.  
  11642. Stefania:
  11643.  
  11644. In Regards to your letter <"relay1.pip.456:20.08.94.18.02.22"@pipex.net>:
  11645. > I was starting to use Script Wizard 1.0, and that is what's happened.....
  11646. >
  11647. > I opened a script, which is actually an application, with Script Wizard 1.0.
  11648. > I made some changes (not very dangerous, I thought...) closing then the
  11649.  script.
  11650. >
  11651. > After that I was not able anymore to reopen the script neither
  11652. > with Script Wizard or Script Editor.
  11653.  
  11654. We've not seen a message from you on our technical support e-mail
  11655. account; I apologise if a message from you is already on its way to us.
  11656.  
  11657. Can you e-mail us a bin-hexed copy of the script application, _and_ of
  11658. the damaged file, so we can try to find out what went wrong?
  11659.  
  11660. Also, can you tell us your system configuration?
  11661.  
  11662. This is not a "known problem" but of course we take it _very_ seriously.
  11663.  
  11664.  
  11665. best regards, Paul
  11666.  
  11667. +------------------------------------------------------------------+
  11668. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  11669. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  11670. | & Full Moon Software, Inc               || US ph: 408 253 7199
  11671. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  11672. =========================================================================
  11673. Date:         Tue, 20 Sep 1994 20:12:06 GMT
  11674. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11675. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11676. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  11677. Organization: commstalk, & Full Moon Software
  11678. Subject:      Re: Scripts as direct objects - an AS oddity
  11679.  
  11680. Hi Danny,
  11681.  
  11682. In Regards to your letter <199409201639.AA05188@mailgate.exnet.com>:
  11683. > >AppleScript will try to pass the "do to
  11684. > >script" message to the script_object directly, and won't dispatch it to
  11685. > >the application.
  11686. >
  11687. > I'm going over the QuarkXpress scripting docs, and I see that they claim to
  11688. > be able to handle this.  The example they provide is:
  11689. >
  11690. > script theRealScript
  11691. >   tell app "QuarkXpress"
  11692. >     -- script statements
  11693. >   end tell
  11694. > end script
  11695. >
  11696. > tell app "QuarkXpress"
  11697. >   do script (theRealScript)
  11698. > end tell
  11699. >
  11700. > The claim is that the script "is processed completely within the
  11701. > application."  Is that what you're trying to do?  Haven't tested it yet.
  11702.  
  11703. I don't have Quark XPress so I can't try it myself, but my claim is
  11704. indeed that this will not send the "do script" event to the app in AS
  11705. 1.1. I think that the "do script" message will be dispatched directly
  11706. to the script and never sent to XPress. (If it does work in XPress, I
  11707. need to take a look at the XPress aete and scripting size resiources in
  11708. case they are using a flag to trigger different behavior, because that
  11709. also suggests that we will be able to fix the problem in SW too.)
  11710.  
  11711. It will work as documented in the XPress docs with AS 1.0, and it would
  11712. even have worked that way until well into the AS 1.1 alpha test period
  11713. (I _think_ the change was made in the AS 1.1a4q4 build, shortly before
  11714. beta, because that was when the new mode flag was added.)
  11715.  
  11716.  
  11717. best regards, Paul
  11718.  
  11719. +------------------------------------------------------------------+
  11720. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  11721. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  11722. | & Full Moon Software, Inc               || US ph: 408 253 7199
  11723. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  11724. =========================================================================
  11725. Date:         Tue, 20 Sep 1994 15:03:25 -0700
  11726. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11727. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11728. From:         Kevin Purcell <kevinpu@ATM.COM>
  11729. Subject:      Re: Using AppleScript text delimiters
  11730.  
  11731. I tried fooling about with the text items but got some silly results. I
  11732. guess I didn't try this combination.
  11733.  
  11734. Rewriting the script to remove typos and incorporate suggestions gives:
  11735.  
  11736. set oldDelimiters to text item delimiters of AppleScript
  11737. set AppleScript's text item delimiters to " "
  11738. set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
  11739. set ti to text items of s
  11740. set AppleScript's text item delimiters to oldDelimiters
  11741. ti
  11742.  
  11743. this returns:
  11744.  
  11745. {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
  11746.  
  11747. Which is close enough.
  11748.  
  11749. Thanks to Brian and John.
  11750.  
  11751. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  11752. Attachmate Corp                   xenolith@halcyon.com
  11753. =========================================================================
  11754. Date:         Tue, 20 Sep 1994 18:26:24 -0500
  11755. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11756. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11757. From:         Atul Butte <atul_butte@BROWN.EDU>
  11758. Organization: Brown University School of Medicine
  11759. Subject:      Re: Where can I find the TCP/IP osax?
  11760.  
  11761. >I am now sending a new version of the TCP/IP Scripting Addition (version
  11762. >1.1) to the gaea.kgs.ukans.edu AppleScript archives.  I think Fred Terry
  11763. >will post a message when it becomes accessible.
  11764.  
  11765. You'll find it in
  11766.  
  11767. ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-1-1.sea.hqx
  11768.  
  11769. +-----------------
  11770. Atul Butte
  11771. Brown University School of Medicine
  11772. atul_butte@brown.edu
  11773. =========================================================================
  11774. Date:         Tue, 20 Sep 1994 18:27:00 -0500
  11775. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11776. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11777. From:         Atul Butte <atul_butte@BROWN.EDU>
  11778. Organization: Brown University School of Medicine
  11779. Subject:      Re: [?] on TCP/IP osax
  11780.  
  11781. In article <GRAND%LISTS.APPLESCRIPT.3869@brownvm.brown.edu>, you wrote:
  11782.  
  11783. > I just tried out the TCP/IP osax with the Send Mail sample script.  It
  11784. > worked great.
  11785. >
  11786. > My question is:  Can I include a subject?  If I can, how can it be
  11787. > incorporated into the Send Mail script.
  11788. >
  11789.  
  11790. Check out the new version just posted on gaea... the sample mail script now
  11791. includes a subject line!
  11792.  
  11793. >I am now sending a new version of the TCP/IP Scripting Addition (version
  11794. >1.1) to the gaea.kgs.ukans.edu AppleScript archives.  I think Fred Terry
  11795. >will post a message when it becomes accessible.
  11796.  
  11797. You'll find it in
  11798.  
  11799. ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-1-1.sea.hqx
  11800.  
  11801. +-----------------
  11802. Atul Butte
  11803. Brown University School of Medicine
  11804. atul_butte@brown.edu
  11805. =========================================================================
  11806. Date:         Tue, 20 Sep 1994 15:41:44 -0700
  11807. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11808. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11809. From:         Alec Plumb <aplumb@UCSD.EDU>
  11810. Subject:      Re: Eudora 2.1 and notifying applications...
  11811.  
  11812. >
  11813. >on notify(messages)
  11814. >display dialog (class of messages)
  11815. >end
  11816. >
  11817. >It returns "scrpt", and not "list" as it should. I don't know if this is a
  11818. >bug in the Eudora Notification OSAX or not... I noticed the bizarre fact
  11819. >that the OSAX is called "notify", not "notice" as well. That may, in fact,
  11820. >be the problem. The author may have simply written an OSAX for simple
  11821. >notification, and not notification with parameters... I'll write to him and
  11822. >find out.
  11823. >
  11824. >Steve Dorner replied to my question about exactly what parameters the
  11825. >notification sends by quoting the dictionary entry above. That leads me to
  11826. >believe that it is, in fact, the OSAX which is not sending along the proper
  11827. >parameters... I'll keep you posted.
  11828. >
  11829.  
  11830. Well, I canibalized the Eudora Announcer script, which does not require the
  11831. Eudora Notification OSAX, removed the Eudora Notification OSAX, and with
  11832. the following script:
  11833.  
  11834. on =ABevent CSOmeNot=BB (theNewMessages)
  11835.         display dialog (class of theNewMessages)
  11836. end =ABevent CSOmeNot=BB
  11837.  
  11838. I also got a result of "scrpt".  So I don't think the problem is with the
  11839. osax.  The unmolested Eudora Announcer also does not seem to do anything
  11840. except get lanuched with my setup.  (Eudora 2.1, System 7.5 with all the
  11841. required OSAXes in place.)
  11842.  
  11843. Has anybody successfully written a script to handle Eudora 2.1
  11844. notifications?  I just got my spiffy new pager and can't wait to get Eudora
  11845. melded with Notify! to satisfy my compulsive need to be wired in.
  11846.  
  11847.  
  11848. Alec Plumb        \\  W:619/534-8166  \\
  11849. Macintosh Support  \\  H:619/294-2112  \\
  11850. IGPP \\ SIO \\ UCSD \\  aplumb@ucsd.edu \\
  11851. =========================================================================
  11852. Date:         Tue, 20 Sep 1994 17:12:10 -0400
  11853. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11854. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11855. From:         David Weingarten <dweinga@UNIX.CC.EMORY.EDU>
  11856. Subject:      unsubscribe
  11857.  
  11858. david weingarten
  11859. =========================================================================
  11860. Date:         Tue, 20 Sep 1994 23:32:07 -0400
  11861. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11862. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11863. From:         Bill Kearney <wkearney@ACCESS.DIGEX.NET>
  11864. Subject:      Sending clipboard to Eudora via AppleScript
  11865.  
  11866. The following text should be pasted into an AppleScript document.  It will
  11867. let you take the current contents of the clipboard and paste it into a new
  11868. text message in Eudora.  The requirements are the OSAX Jon's Commands and
  11869. the GTQ Scripting Library.  They're on gaea.kgs.ukans.edu.  They must
  11870. reside on the sending machine, as should this script.  You might also want
  11871. to use the OSAX menu extension, also on gaea, to add this to your menu bar.
  11872.  
  11873.  
  11874. Basically, I run Eudora on a PowerBook.  I develop on another machine.  The
  11875. development machine has a nasty tendency to get trashed and I don't like
  11876. taking Eudora with it!  So I always ended up retyping code snippets and
  11877. such from the dev machine over to the PB.  I wrote this to make that
  11878. process MUCH easier.
  11879.  
  11880. I don't know what rev Eudora it requires, I tried it using 2.1.
  11881.  
  11882. It's not perfect, since it requires you hard code the target machine,
  11883. username and password.  Not a problem in my circumstances, but your's may
  11884. vary.  As soon as I get the hang of saving pseudo-preferences via
  11885. AppleScript I'll add that feature.  Meanwhile, at least it works!
  11886.  
  11887. It does NO real error checking.  Don't use it unless you know the target
  11888. machine's going to be there.
  11889.  
  11890. Since I write a bunch of Newton shareware, this too, is shareware.  If you
  11891. like it, please send $5 to:
  11892.  
  11893. Bill Kearney
  11894. P.O.Box 201
  11895. Lutherville, MD 21093
  11896.  
  11897. If you don't wanna pay, at least e-mail me some thanks!
  11898.  
  11899. Enjoy!
  11900.  
  11901.  
  11902. --(Code follows now)
  11903.  
  11904.  
  11905. -- These two lines are hard-coded to my Eudora machine.  You should edit
  11906. them to reflect your configuration
  11907. -- As soon as I learn how, I'll set up some sort of user prefs.
  11908.  
  11909. set myApp to application "Eudora" of machine "Monster Mash"
  11910. set refInfo to (login as "Bill Kearney" password "Bill")
  11911.  
  11912. set theText to the clipboard
  11913.  
  11914. display dialog "Send the clipboard to what e-mail address?" default answer =
  11915. =AC
  11916.         "" buttons {"OK", "Cancel"} default button "OK" with icon stop
  11917. copy the result to theResult
  11918. if the button returned of theResult is "Cancel" then
  11919.         return
  11920. end if
  11921. copy the text returned of theResult to theAddress
  11922.  
  11923. display dialog "Using what subject?" default answer =AC
  11924.         "" buttons {"Queue", "Create", "Cancel"} default button "Create" with ic
  11925. on =
  11926. stop
  11927. copy the result to theResult
  11928. if the button returned of theResult is "Cancel" then
  11929.         return
  11930. else if the button returned of theResult is "Queue" then
  11931.         set theQueue to true
  11932. else if the button returned of theResult is "Create" then
  11933.         set theQueue to false
  11934. end if
  11935. copy the text returned of theResult to theSubject
  11936.  
  11937. tell application "Eudora" of machine "Monster Mash"
  11938. =09
  11939.         set newMsg to make new message at end of mailbox "Out" in mail folder ""
  11940.         set field "To:" of newMsg to theAddress
  11941.         set field "Subject:" of newMsg to theSubject
  11942.         set field "" of newMsg to theText
  11943. =09
  11944.         if theQueue then
  11945.                 queue newMsg
  11946.         end if
  11947. =09
  11948. end tell
  11949.  
  11950. logout refInfo
  11951.  
  11952. --(End of Code)
  11953.  
  11954.  
  11955. Bill Kearney      | wkearney@access.digex.net                | copyright 199=
  11956. 4
  11957. Baltimore, MD USA | http://www.digex.net/~wkearney/          | W.G.Kearney
  11958. (410) 235-4574    | ftp://ftp.digex.net/pub/access/wkearney/ |
  11959. =========================================================================
  11960. Date:         Tue, 20 Sep 1994 21:20:58 -0700
  11961. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11962. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11963. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11964. Subject:      Re: New AppleScript books
  11965.  
  11966. >I ntoiced in MacTech J Aug 1994 an ad from M&T books for a new AS book
  11967. >comeing in September:
  11968. >
  11969. >Applied Apple Scripting by Thomas Trinko
  11970. >Disk/book $35
  11971. >ISBN 1-55851-330-7
  11972. >
  11973. >Anyone seen this one yet?
  11974.  
  11975. I suspect the M&T ad will turn out to have been a trifle optimistic in
  11976. saying "September".  They wanted some revisions to the book (as compared
  11977. with the prior publisher, who bailed out near the end of the process).
  11978. Note the space in the name between "Apple" and "Scripting"...the book
  11979. discusses (at least) AppleScript and Frontier.
  11980.  
  11981.    --John
  11982.  
  11983. --
  11984. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11985. =========================================================================
  11986. Date:         Tue, 20 Sep 1994 14:43:05 U
  11987. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11988. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  11989. From:         Shawn Connelly <sconnelly@QM.PRUBANK.COM>
  11990. Subject:      Re: Checking a Frontier tab
  11991.  
  11992.                  RE>>Checking a Frontier tabl
  11993. Thanks for the help.
  11994.  
  11995. --------------------------------------
  11996. Date: 9/20/94 2:27 PM
  11997. To: Shawn Connelly
  11998. From: Macintosh Scripting Systems
  11999.         Reply to:   RE>Checking a Frontier table
  12000. >>I would like to find a script that when pass a table address and a
  12001. value,
  12002. >>checks to see if the value is equal to any element of the table. I'm
  12003. sure
  12004. >>someone has had to write this, and I don't have the time, and even want
  12005. >>to re-invent the wheel.
  12006. >>
  12007. >> Thanks.
  12008. >> Shawn Connelly
  12009. >
  12010. >
  12011. >   The "defined" verb does exactly what you want.  It takes one argument:
  12012. >the address whose existance you want to confirm.
  12013. >
  12014. >--Richard Petty
  12015.  
  12016. MY MISTAKE!!!  I misunderstood your question!
  12017.  
  12018. You'll need to write this yourself.  Of this I'm sure.  The nice thing is,
  12019. it's a rather trivial script.
  12020.  
  12021.  
  12022. on TableContains (TableToTest, TestValue) {
  12023.         local (TableIndex);
  12024.         for TableIndex = 1 to sizeOf (TableToTest^) {
  12025.                 if TableToTest^[TableIndex] == TestValue {
  12026.                         return (true)}};
  12027.         return (false)};
  12028.  
  12029. dialog.alert (TableContains (@root.newsTable, "Mark"))
  12030.  
  12031.  
  12032.     This can be made more robust, of course.  I included the calling
  12033. statement (dialog.notify) to show it being used.
  12034.  
  12035.     Sorry for the gaff...
  12036.  
  12037. --Richard Petty
  12038.  
  12039.  
  12040.  
  12041.   ------------------------------------------------------------------------
  12042.   Shawn Connelly                          |  Computers are useless. They
  12043.   The Prudential Bank                     |   can only give you answers.
  12044.   Two Concourse Pkwy, #400                |    - Pablo Picasso
  12045.   Atlanta, GA 30328                       |
  12046.   Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
  12047. =========================================================================
  12048. Date:         Wed, 21 Sep 1994 09:46:22 GMT
  12049. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12050. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12051. From:         "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
  12052. Organization: The Personal Online Source
  12053. Subject:      Problem with comparing Strings!
  12054.  
  12055. Does anybody know why this script doesnot work as expect.
  12056. "SUBFOLDER"="SUBFOLDER" should be TRUE!
  12057.  
  12058. set argl to words of "mist SUBFOLDER TEXT"
  12059. repeat with x in argl
  12060.         log (class of x)
  12061.         log (x)
  12062.         log ("SUBFOLDER" = x)
  12063. end repeat
  12064.  
  12065. Eventprotokoll: (*string*)(*mist*)(*false*)(*string*)(*SUBFOLDER*)(*false*)(*str
  12066. ing*)(*TEXT*)(*false*)
  12067.  
  12068. The solution is: (but I do not know why!!)
  12069. set argl to words of "mist SUBFOLDER TEXT"
  12070. repeat with x in argl
  12071.         log (class of x)
  12072.         log (x)
  12073.         log ("SUBFOLDER" = (x as string)) -- you have to covert the "String" x t
  12074. o a
  12075. "String" !!
  12076. end repeat
  12077.  
  12078. Thanx
  12079. Andreas
  12080.  
  12081.  
  12082.  --------------------------------------------------------
  12083.  sent via  m a g n e t / +43-1-522-7-225 / info@magnet.at
  12084.  --------------------------------------------------------
  12085. =========================================================================
  12086. Date:         Wed, 21 Sep 1994 09:51:20 -0400
  12087. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12088. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12089. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  12090. Subject:      Re: Problem with comparing Strings!
  12091. In-Reply-To:  <no.id> from "Andreas Heissenberger,HOL" at Sep 21, 94 09:46:22 am
  12092.  
  12093. --Andreas Heissenberger wrote:
  12094. >
  12095. >Does anybody know why this script doesnot work as expect.
  12096. >"SUBFOLDER"="SUBFOLDER" should be TRUE!
  12097. >
  12098. >set argl to words of "mist SUBFOLDER TEXT"
  12099. >repeat with x in argl
  12100. >        log (class of x)
  12101. >        log (x)
  12102. >        log ("SUBFOLDER" = x)
  12103. >end repeat
  12104.  
  12105.     You need to go and get your AppleScript Language Guide (English
  12106. Dialect) off of the bookshelf, and turn it to page 202. This is the
  12107. section that talks about the "Repeat With (loop Variable) In (list)"
  12108. control statement. For those of you that have another AS book, I'm sure
  12109. there is a similar section to look up. You need to access the contents
  12110. of the loop variable if you want to work with it's actual value.
  12111.  
  12112. -Hades
  12113. =========================================================================
  12114. Date:         Wed, 21 Sep 1994 09:53:30 -0400
  12115. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12116. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12117. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  12118. Subject:      Re: Using AppleScript text delimiters
  12119. In-Reply-To:  <no.id> from "Kevin Purcell" at Sep 20, 94 03:03:25 pm
  12120.  
  12121. --Kevin Purcell wrote:
  12122. >
  12123. >set oldDelimiters to text item delimiters of AppleScript
  12124. >set AppleScript's text item delimiters to " "
  12125. >set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
  12126. >set ti to text items of s
  12127. >set AppleScript's text item delimiters to oldDelimiters
  12128. >ti
  12129. >
  12130. >this returns:
  12131. >
  12132. >{"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
  12133. >
  12134. >Which is close enough.
  12135.  
  12136.     Just out of curiosity, what would you like to have returned in the
  12137. list variable? It seems obvious to me that you have asked AppleScript to
  12138. parse a string based on it's whitespace. You got exactly the result you
  12139. should have for the string you parsed.
  12140.  
  12141. -Hades
  12142. =========================================================================
  12143. Date:         Wed, 21 Sep 1994 07:04:13 PDT
  12144. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12145. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12146. From:         "Andrew T. Johnston" <atjohnst@APPLE.COM>
  12147. Subject:      RE>Problem with comparing Strings!
  12148.  
  12149. Hi,
  12150.  
  12151. "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT> writes:
  12152. > Does anybody know why this script doesnot work as expect.
  12153. > "SUBFOLDER"="SUBFOLDER" should be TRUE!
  12154.  
  12155. > set argl to words of "mist SUBFOLDER TEXT"
  12156. > repeat with x in argl
  12157. >         log (class of x)
  12158. >         log (x)
  12159. >         log ("SUBFOLDER" = x)
  12160. > end repeat
  12161.  
  12162. This is a bit tricky, and the log is a bit misleading in this case. For
  12163. every iteration of your loop, 'x' is a _reference_ to an item in 'argl'. I
  12164. guess the log is resolving all the references, where the equality operation
  12165. is not. This makes your comparison of "SUBFOLDER" = (item 2 of argl), which
  12166. is false because "SUBFOLDER" is not a reference to item 2 of 'argl'.
  12167.  
  12168. > The solution is: (but I do not know why!!)
  12169. [...]
  12170. >        log ("SUBFOLDER" = (x as string))
  12171. [...]
  12172.  
  12173. This works because it resolves the reference (item 2 of argl), and returns
  12174. the string "SUBFOLDER", making the comparison true.
  12175.  
  12176. To see this reference stuff in action, run this script:
  12177.  
  12178.   set argl to words of "mist SUBFOLDER TEXT"
  12179.   repeat with x in argl
  12180.         x
  12181.   end repeat
  12182.  
  12183.  
  12184. Look at the result. The Script Editor tells me it is:
  12185.  
  12186.   item 3 of {"mist", "SUBFOLDER", "TEXT"}
  12187.  
  12188.  
  12189. I've run into this one a few times myself.
  12190.  
  12191. Hope that helps,
  12192.   Andrew
  12193.  
  12194. ------------------
  12195. Andrew T. Johnston
  12196. Apple Canada, Inc.
  12197. atjohnst@apple.com
  12198. =========================================================================
  12199. Date:         Wed, 21 Sep 1994 07:15:57 -0500
  12200. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12201. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12202. From:         Steve Alex <steve_alex@AIDT.EDU>
  12203. Subject:      Re> Problem with comparing Strings!
  12204.  
  12205.  ------ From: Macintosh Scripting Systems, Wed, Sep 21, 1994 ------
  12206.  
  12207. >Does anybody know why this script doesnot work as expect.
  12208. >"SUBFOLDER"="SUBFOLDER" should be TRUE!
  12209.  
  12210. >set argl to words of "mist SUBFOLDER TEXT"
  12211. >repeat with x in argl
  12212.         log (class of x)
  12213.         log (x)
  12214.         log ("SUBFOLDER" = x)
  12215. >end repeat
  12216.  
  12217. >Eventprotokoll:
  12218. (*string*)(*mist*)(*false*)(*string*)(*SUBFOLDER*)(*false*)(*string*)(*TEXT*)(*f
  12219. alse*)
  12220.  
  12221.  
  12222. if you do the following
  12223.  
  12224. set argl to words of "mist SUBFOLDER TEXT"
  12225. repeat with x in argl
  12226.         x
  12227. end repeat
  12228.  
  12229.  
  12230. the result in the show results window is
  12231. item 3 of {"mist", "SUBFOLDER", "TEXT"}
  12232.  
  12233. Log and result must do thing differently!
  12234. =========================================================================
  12235. Date:         Wed, 21 Sep 1994 11:17:38 EDT
  12236. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12237. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12238. From:         Danny Goodman <DGoodman@AOL.COM>
  12239. Subject:      Re: Cooperating with apps
  12240.  
  12241. >In the absence of the scriptable finder, is there a robust
  12242. >way of achieving context switches?
  12243.  
  12244. With the PreFab Player product (which I recommend to fill scripting gaps in
  12245. any app) comes an XCMD called appMenu, which lets you call the Applications
  12246. menu.  This XCMD was created by UserLand, so it may be available from their
  12247. forum libraries on various services or ftp sites.
  12248.  
  12249. Danny Goodman
  12250. =========================================================================
  12251. Date:         Wed, 21 Sep 1994 11:41:38 -0400
  12252. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12253. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12254. From:         Paul Gerardi <gerardi@RIDGEFIELD.SDR.SLB.COM>
  12255. Subject:      Re: driver for print to disk?
  12256.  
  12257. >I have fax software that will autoprint incoming faxes. I would like to
  12258. >save incoming faxes to disk in a TIFF format. I can use FolderWatcher to
  12259. >note when new files appear and then I can process them with other
  12260. >AppleScript applications.
  12261. >
  12262. >Anyone know of a printer driver that saves to disk as TIFF? Actually I
  12263. >suppose I could use any file format that is common and I could convert it
  12264. >to a format readable by OCR but I assume TIFF is probably best.
  12265. >
  12266. >Kee Nethery
  12267. >
  12268. >_________________________________________________________________
  12269. >Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  12270.  
  12271. Kee,
  12272.  
  12273. There is a PD/Shareware utility called Print2Pic that is a chooser
  12274. pseudo-printer that will print to a PICT file. Should do what you need.
  12275. I believe it's available from info-mac and its mirrors (I think that's
  12276. where I got it from...)
  12277.  
  12278. It also has plug-ins that support printing to "postcards", self running
  12279. doc files; and QuickTime movies among other things.  Could be useful for
  12280. you for other things besides your initial query.
  12281.  
  12282. Regards,
  12283. -Paul
  12284.  
  12285.  
  12286. =======================================================================
  12287.   Paul Gerardi                             Schlumberger-Doll Research
  12288.   Computing Services                       Old Quarry Road
  12289.   Macintosh, Workstations, Networks        Ridgefield, CT  06877
  12290.   e-mail: gerardi@ridgefield.sdr.slb.com   Phone: (203)431-5471
  12291.   AppleLink: GERARDI.SDR                   Fax:   (203)438-3819
  12292. =======================================================================
  12293. =========================================================================
  12294. Date:         Wed, 21 Sep 1994 08:56:46 -0700
  12295. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12296. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12297. From:         Kevin Purcell <kevinpu@ATM.COM>
  12298. Subject:      Re: Using AppleScript text delimiters
  12299.  
  12300. >--Kevin Purcell wrote:
  12301. >>
  12302. >>set oldDelimiters to text item delimiters of AppleScript
  12303. >>set AppleScript's text item delimiters to " "
  12304. >>set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
  12305. >>set ti to text items of s
  12306. >>set AppleScript's text item delimiters to oldDelimiters
  12307. >>ti
  12308. >>
  12309. >>this returns:
  12310. >>
  12311. >>{"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
  12312. >>
  12313. >>Which is close enough.
  12314. >
  12315. >    Just out of curiosity, what would you like to have returned in the
  12316. >list variable? It seems obvious to me that you have asked AppleScript to
  12317. >parse a string based on it's whitespace. You got exactly the result you
  12318. >should have for the string you parsed.
  12319. >
  12320. >-Hades
  12321.  
  12322. I simplified the problem for the list. In the real world I can get strings like:
  12323.  
  12324. "bingo foo bar C:\\foo\\bar.baz (xyzzy plugh"
  12325. "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
  12326.  
  12327. The above code gives:
  12328.  
  12329. {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(xyzzy", "plugh"}
  12330. {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
  12331.  
  12332. If I could use more than one text item delimiter, like so:
  12333.  
  12334. to tokenize(aString)
  12335. set oldDelimiters to text item delimiters of AppleScript
  12336. set AppleScript's text item delimiters to {" ", "("}
  12337. set tokens to text items of aString
  12338. set AppleScript's text item delimiters to oldDelimiters
  12339. return tokens
  12340. end
  12341.  
  12342.  
  12343. I would get a result more to my liking in this case:
  12344.  
  12345. {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "xyzzy", "plugh"}
  12346.  
  12347. Rather than having to shift out the "(" at a later point (which roughs up
  12348. the code).
  12349.  
  12350. One idea that was brought up in the develop issue 10 article about Apple
  12351. script was the cocept that you should be able to think what you want and
  12352. write the code straight from that thought, rather than translating into
  12353. some algorithmic work around.
  12354.  
  12355. But I suppose I get what I deserve if I try to parse strings with a DOS
  12356. filename in them :-)
  12357.  
  12358. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  12359. Attachmate Corp                   xenolith@halcyon.com
  12360. =========================================================================
  12361. Date:         Wed, 21 Sep 1994 08:56:55 -0700
  12362. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12363. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12364. From:         Kevin Purcell <kevinpu@ATM.COM>
  12365. Subject:      Re: Problem with comparing Strings!
  12366.  
  12367. >Does anybody know why this script doesnot work as expect.
  12368. >"SUBFOLDER"="SUBFOLDER" should be TRUE!
  12369. >
  12370. >set argl to words of "mist SUBFOLDER TEXT"
  12371. >repeat with x in argl
  12372. >        log (class of x)
  12373. >        log (x)
  12374. >        log ("SUBFOLDER" = x)
  12375. >end repeat
  12376. >
  12377. >Eventprotokoll:
  12378. >(*string*)(*mist*)(*false*)(*string*)(*SUBFOLDER*)(*false*)(*string*)(*TEXT*)(*
  12379. >false*)
  12380.  
  12381. Because x in a repeat with loop is a reference to the item of interest not
  12382. the item itself:
  12383.  
  12384. To see this run this one:
  12385.  
  12386. set argl to words of "mist SUBFOLDER TEXT"
  12387. repeat with x in argl
  12388.         set r to x
  12389. end repeat
  12390. r
  12391.  
  12392. gives the result:
  12393.  
  12394. item 3 of {"mist", "SUBFOLDER", "TEXT"}
  12395.  
  12396. rather than:
  12397.  
  12398. "TEXT"
  12399.  
  12400. The "class of" gives you the class of the object the thing is a reference to.
  12401.  
  12402. Kevin Purcell, N7WIM / G8UDP      kevinpu@eve.atm.com      206/649-6489
  12403. Attachmate Corp                   xenolith@halcyon.com
  12404. =========================================================================
  12405. Date:         Wed, 21 Sep 1994 12:29:17 -0400
  12406. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12407. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12408. From:         Data <czen@COLUMBIA.EDU>
  12409. Subject:      Re: driver for print to disk?
  12410. In-Reply-To:  <199409211545.AA13171@mailhub.cc.columbia.edu>
  12411.  
  12412. > >I have fax software that will autoprint incoming faxes. I would like to
  12413. > >save incoming faxes to disk in a TIFF format. I can use FolderWatcher to
  12414. > >note when new files appear and then I can process them with other
  12415. > >AppleScript applications.
  12416. > >
  12417. > >Anyone know of a printer driver that saves to disk as TIFF? Actually I
  12418. > >suppose I could use any file format that is common and I could convert it
  12419. > >to a format readable by OCR but I assume TIFF is probably best.
  12420.  
  12421. you can use Print2Pict. and then use JPEGView's droplet converter to
  12422. convert em to tiffs.
  12423.  
  12424. hope that helps
  12425.  
  12426. /data                                                  <czen@columbia.edu>
  12427.               Matrix 29.12 Op and Control Strip Modules Archive Maintainer
  12428. --------------------------------------------------------------------------
  12429. voice 212-853-7882                      Matrix 29.12 now fully operational
  12430. --------------------------------------------------------------------------
  12431. Love your enemies: they'll go crazy trying to figure out what you're up to.
  12432. =========================================================================
  12433. Date:         Wed, 21 Sep 1994 11:38:40 -0500
  12434. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12435. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12436. From:         Fred Terry <pfterry@LKS.CSI.COM>
  12437. Subject:      Re: Cooperating with apps
  12438. In-Reply-To:  Your message of "Wed, 21 Sep 94 11:17:38 EDT"
  12439.  
  12440. >>In the absence of the scriptable finder, is there a robust
  12441. >>way of achieving context switches?
  12442. >
  12443. >With the PreFab Player product (which I recommend to fill scripting gaps in
  12444. >any app) comes an XCMD called appMenu, which lets you call the Applications
  12445. >menu.  This XCMD was created by UserLand, so it may be available from their
  12446. >forum libraries on various services or ftp sites.
  12447. >
  12448. >Danny Goodman
  12449.  
  12450. Don't know if it's the same one, but you'll find it on
  12451.  
  12452. ftp://gaea.kgs.ukans.edu/applescript/osaxen/App_Menu_OSAX.sit.hqx
  12453.  
  12454. Cheers.
  12455.  
  12456. pf
  12457. =========================================================================
  12458. Date:         Wed, 21 Sep 1994 09:42:19 -0700
  12459. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12460. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12461. From:         Jerry Ballard <gqb@FARALLON.COM>
  12462. Subject:      Need Find & Replace Addition
  12463.  
  12464. Does anyone know the location of a Scripting Addition that will perform bulk
  12465. replacement of character(s), i.e. replace all occurances of character "x"
  12466. with character "y" in a string.  (I currently do it with a script, but need
  12467. something faster.)
  12468.  
  12469. -tks
  12470. Jerry Ballard
  12471. Farallon Computing Inc.
  12472. =========================================================================
  12473. Date:         Wed, 21 Sep 1994 14:33:22 EDT
  12474. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12475. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12476. From:         Jim Mueller <jim@PHARMACOP.COM>
  12477. Subject:      Getting current printer info
  12478.  
  12479.  Is there a way to find out what a Mac's current printer is if it's on
  12480. LaserWriter 8.*? Earlier drivers appear to have kept the printer name in a
  12481. resource, but I can't find it now in either the LaserWriter 8 driver,
  12482. LaserWriter 8 Prefs or the Printer Descriptions themselves.
  12483.  
  12484.  (I wish the Chooser would highlight the currently selected driver too, but
  12485. that's probably just me.)
  12486.  
  12487.  
  12488.  
  12489. Background:
  12490.  
  12491.  I am trying to script a print station app where a mac with a serial label
  12492. printer (Brother P-Touch PC) connected will check to see if a print file
  12493. has showed up in a mounted UNIX directory (courtesy of CAP60), change the
  12494. printer to the serial printer, read the file with QuicKeys' Display Text,
  12495. print it to the label printer, **switch the printer back to what it was
  12496. before**, then delete the file in the UNIX directory.
  12497.  I know the app "lpDaemon" is suposed to make a printer on a networked mac
  12498. available to the UNIX lpr command, but I havn't been able to get it to work
  12499. yet (currently e-mailing (conversing via e-mail) with the author), so I
  12500. need a fallback.
  12501.  
  12502. -^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-
  12503. Jim Mueller   Pharmacopeia Inc.  (609) 987-8308
  12504. jim@pharmacop.com
  12505. LAN Manager / Software Engineering / Graphic Arts / Mechanical Engineering
  12506. =========================================================================
  12507. Date:         Wed, 21 Sep 1994 13:25:13 -0800
  12508. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12509. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12510. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  12511. Subject:      Re: Disabling cancel (cmd-.) possible?
  12512.  
  12513. > >Is there a way to temporarily disable canceling the execution of a
  12514. > >script? There is a point in a script for a very brief period of
  12515. > >time (less than two seconds) that could cause loss of data for the
  12516. > >user if they cancelled. It's not likely they'll cancel at that point
  12517. > >but it is possible.
  12518. >
  12519. > I can't think of any.  If you can't redo the script so that the data
  12520. > loss is impossible, you may have to move the dangerous operations into a
  12521. > Scripting Addition or a small application, where you would have
  12522. > more control.
  12523. >    --John
  12524.  
  12525. I have rewritten the script so that it updates a temp file that then replaces
  12526. the current status file only after being fully updated. This works fine in
  12527. most cases such as power loss, crashes, cancelling, etc. There are still
  12528. minor "holes" in the script where the user could lose data but it is much
  12529. less likely now.
  12530.  
  12531. The only other problem of not being able to handle cancels is that I can't
  12532. keep my log accurate then since I can't write to log the in the event of the
  12533. user cancelling. If there is a way to get around this problem I'd love to
  12534. know how.
  12535.  
  12536. Thanks,
  12537.  
  12538. Greg
  12539. =========================================================================
  12540. Date:         Thu, 22 Sep 1994 09:14:00 +1200
  12541. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12542. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12543. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  12544.               NZ" <LDO@WAIKATO.AC.NZ>
  12545. Subject:      Re: Cooperating with apps
  12546.  
  12547. Fred Terry <pfterry@LKS.CSI.COM> writes:
  12548.  
  12549. >>>In the absence of the scriptable finder, is there a robust
  12550. >>>way of achieving context switches?
  12551. >>
  12552. >>With the PreFab Player product (which I recommend to fill scripting gaps in
  12553. >>any app) comes an XCMD called appMenu, which lets you call the Applications
  12554. >>menu.  This XCMD was created by UserLand, so it may be available from their
  12555. >>forum libraries on various services or ftp sites.
  12556. >>
  12557. >>Danny Goodman
  12558. >
  12559. >Don't know if it's the same one, but you'll find it on
  12560. >
  12561. >ftp://gaea.kgs.ukans.edu/applescript/osaxen/App_Menu_OSAX.sit.hqx
  12562.  
  12563. That one is mine. It only lets you make selections from the first three items
  12564. in the application menu: hide frontmost application, hide others, and show all.
  12565.  
  12566. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  12567. Info & Tech Services Division              fax: +64-7-838-4066
  12568. University of Waikato            electric mail: ldo@waikato.ac.nz
  12569. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  12570. =========================================================================
  12571. Date:         Thu, 22 Sep 1994 09:23:00 +1200
  12572. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12573. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12574. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  12575.               NZ" <LDO@WAIKATO.AC.NZ>
  12576. Subject:      Re: Getting current printer info
  12577.  
  12578. Jim Mueller <jim@PHARMACOP.COM> writes:
  12579.  
  12580. > (I wish the Chooser would highlight the currently selected driver too, but
  12581. >that's probably just me.)
  12582.  
  12583. This was true, but the point is now moot. With QuickDraw GX, you choose your
  12584. default printer in the Finder, and it's clearly highlighted there. The Chooser
  12585. now does little more than create the desktop printer icons.
  12586.  
  12587. > I am trying to script a print station app where a mac with a serial label
  12588. >printer (Brother P-Touch PC) connected will check to see if a print file
  12589. >has showed up in a mounted UNIX directory (courtesy of CAP60), change the
  12590. >printer to the serial printer, read the file with QuicKeys' Display Text,
  12591. >print it to the label printer, **switch the printer back to what it was
  12592. >before**, then delete the file in the UNIX directory.
  12593.  
  12594. This kind of thing is _much_ easier to do with QuickDraw GX. The new Printing
  12595. Manager gives you a terrific amount of control. In particular, with one call
  12596. (GXSelectJobOutputPrinter), you can redirect your job to a different desktop
  12597. printer, without affecting the choice of default printer. And if you can't get
  12598. a GX-compatible driver for your Brother (I would imagine GDT Softworks would
  12599. have one, if anyone would), it would be a lot easier to write your own, than
  12600. it was in pre-GX days.
  12601.  
  12602. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  12603. Info & Tech Services Division              fax: +64-7-838-4066
  12604. University of Waikato            electric mail: ldo@waikato.ac.nz
  12605. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  12606. =========================================================================
  12607. Date:         Thu, 22 Sep 1994 09:59:00 +1200
  12608. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12609. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12610. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  12611. Subject:      Re: Need Find & Replace Addition
  12612.  
  12613. >Does anyone know the location of a Scripting Addition that will perform bulk
  12614. >replacement of character(s), i.e. replace all occurances of character "x"
  12615. >with character "y" in a string.  (I currently do it with a script, but need
  12616. >something faster.)
  12617.  
  12618. You could use Script Tools' (on gaea) Regular Expressions for grep-style
  12619. search & replaces. However, I've had trouble getting it to work (crashes
  12620. etc), and requests for help to the list and Mark Aldritt(?), the author,
  12621. have met with silence.
  12622.  
  12623. You might have more luck than me.
  12624.  
  12625. _________________________________________________________________________
  12626. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  12627. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  12628. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  12629. =========================================================================
  12630. Date:         Wed, 21 Sep 1994 22:10:43 GMT
  12631. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12632. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12633. From:         "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
  12634. Organization: The Personal Online Source
  12635. Subject:      How can I export styled Text from  a FrontMost textfield?
  12636.  
  12637. I have a field in a window generated with FrontMost. The Style and Font of the
  12638. Text can be changed by the User. How can I save this Text so it can be opend
  12639. in ClarisWorks without loosing the styling ?
  12640.  
  12641. When I write a string with Tab-chars to a Textfield and retrieve it later,
  12642. there are no longer any tabs!
  12643.  
  12644. Andreas
  12645.  
  12646.  --------------------------------------------------------
  12647.  sent via  m a g n e t / +43-1-522-7-225 / info@magnet.at
  12648.  --------------------------------------------------------
  12649. =========================================================================
  12650. Date:         Wed, 21 Sep 1994 22:16:06 GMT
  12651. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12652. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12653. From:         "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
  12654. Organization: The Personal Online Source
  12655. Subject:      How can I show a Progressbar during a calculation in FrontMost?
  12656.  
  12657. I open a window - start a script located in the window - the script is
  12658. changing the "setting of gauge "progress"" - but no changes are done to the
  12659. window until the script has been finished. What do I have to do?
  12660.  
  12661. open window "abc"
  12662. tell window "abc" to DoCalc()
  12663.  
  12664. Andreas
  12665.  
  12666.  --------------------------------------------------------
  12667.  sent via  m a g n e t / +43-1-522-7-225 / info@magnet.at
  12668.  --------------------------------------------------------
  12669. =========================================================================
  12670. Date:         Wed, 21 Sep 1994 21:15:23 -0400
  12671. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12672. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12673. From:         John Buckman <shelby@CLARK.NET>
  12674. Subject:      LISTSERV list information home page
  12675.  
  12676. I've set up a World Wide Web home page for LISTSERV lists.  It
  12677. features handy "reference" pages with lists grouped along certain
  12678. topics, as well as a host of other information, such as how to
  12679. join, the # of members, whether the archives are open, etc.  I'm
  12680. posting this announcement here because the www site has a page for
  12681. Apple Computers.
  12682.  
  12683. Its URL is "http://www.clark.net/pub/listserv/listserv.html"  Use
  12684. Mosaic, Lynx, WWW, Cello, etc. to view it.
  12685.  
  12686. LISTSERV lists for the following topics are represented:
  12687. Agriculture, Anthropology, Apple Computer, Art, Biology &
  12688. Chemistry, Business, Computers, Curricula, Database, Ecology,
  12689. Education, Food, Graphics, History, IBM, Internet & Bitnet, Law,
  12690. Library, Literature & Writing, Mathematics, Medicine, Music, PC
  12691. Software, Physics, Psychology & Philosophy, Religion, Science,
  12692. Teaching Institutions, Technology, Unix, and VMS & VM.
  12693.  
  12694. Here is what a typical entry looks like:
  12695.  
  12696. > Group name: FOODWINE
  12697. > Description: Discussion List for Food and Wine
  12698. > Members: 444
  12699. > Archive searching: for members only
  12700. > Who can join: anyone
  12701. > Country: USA
  12702. > Site: Central Michigan University, Mt. Pleasant, MI 48859
  12703. > Computerized administrator: listserv@cmuvm.csv.cmich.edu
  12704. > Human administrator: foodwine-request@cmuvm.csv.cmich.edu
  12705. > To send mail to the group write to: foodwine@cmuvm.csv.cmich.edu
  12706.  
  12707. Write to me if you'd like more information.
  12708.  
  12709. John
  12710.  
  12711.  
  12712. =================================================================
  12713.  John Buckman - Logika Inc. - Walter Shelby Group Ltd.
  12714.  shelby@clark.net - Internet Software Developers and Consultants
  12715.  
  12716.  ftp:clark.net  We created (1)InfoMagnet, the LISTSERV tool
  12717.  (/pub/magnet) (2)The Desktop Internet Reference (/pub/inetref)
  12718.  (3)Lotus Notes->html converter (in beta); (4)The LISTSERV home
  12719.  page (http://www.clark.net/pub/listserv/listserv.html)
  12720.  
  12721.  tel:(301)718-7840 fax:(301)913-9849 BBS:(301)718-7310
  12722. =================================================================
  12723. =========================================================================
  12724. Date:         Wed, 21 Sep 1994 23:12:51 -0800
  12725. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12726. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12727. From:         Nick Arnett <narnett@VERITY.COM>
  12728. Subject:      HTML list archive moving!
  12729.  
  12730. As promised, I'm moving my HTML archives of this list (and others related
  12731. to the Web, publishing and libraries) to a new, faster site at my new
  12732. employer, Verity Inc.  I'll keep the archive up at
  12733. <URL:http://asearch.mccmedia.com/> for another week or two, but please
  12734. start using the one at Verity, which can be reached from our home page,
  12735. <URL://www.verity.com/>.
  12736.  
  12737. You'll find things somewhat rearranged there and a couple of features are
  12738. temporarily missing.  There are no aliases to the top menus of the lists,
  12739. and there's no full-text search yet.  Okay, okay, I know that second one is
  12740. ironic, considering that Verity has a great full-text search engine (if I
  12741. say so myself), but don't worry, it won't be far behind... and it'll be
  12742. great!  We have some very cool things coming, including... oh, well, stay
  12743. tuned.
  12744.  
  12745. The Verity site is under constant improvement, so please bear with us if
  12746. it's off-line occasionally.  We'll do our best to minimize the down-time.
  12747.  
  12748. The one improvement that you should notice immediately is SPEED.  I'm
  12749. switching from a Macintosh Quadra 605 over a 28.8 phone line to a very fast
  12750. Sun workstation with a T-1 that's only two hops off a very fast backbone...
  12751. We're still generating the files with a Mac, though.  HyperCard remains my
  12752. favorite prototyping environment.
  12753.  
  12754. Feedback is encouraged.  Please feel free to e-mail me or our Webmaster
  12755. [webmaster@verity.com] with your comments.
  12756.  
  12757. Nick Arnett
  12758.  
  12759. --
  12760. World-Wide Web Product Manager
  12761. Verity Inc.
  12762. Mountain View, California
  12763. narnett@verity.com
  12764. =========================================================================
  12765. Date:         Thu, 22 Sep 1994 10:44:27 +0200
  12766. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12767. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12768. From:         Rolf Kocherhans <rolfk@VETVIR.UNIZH.CH>
  12769. Subject:      Help with EUDORA 2.1
  12770.  
  12771. Is there anybody out there which has been able to start the Mail notification
  12772. with the new version of EUDORA 2.1.
  12773.  
  12774. It has am different AppleScript syntax, and I don't know how to change it
  12775. so that the Eudora Notify Controller written from David  L. Brown would
  12776. still work.
  12777.  
  12778. Can anybody help ?
  12779.  
  12780.  
  12781. Thanks for any help.
  12782.  
  12783. Rolf
  12784.  
  12785.                                      \|/
  12786.                                     (o o)
  12787. ________________________________oOo__(_)__oOo_________________________________
  12788.     ___/\_    | Rolf Kocherhans               Internet : rolfk@vetvir.unizh.ch
  12789.    /    o \/| | University Inst.for Virology  Telephone: (+41) 1 3651538
  12790.   /        _| | Winterthurerstr. 266a         Faximile : (+41) 1 3630140
  12791.  /_/\__/-\/   | 8057 Zurich SWITZERLAND
  12792. ______________________________________________________________________________
  12793.    If it wasn't for Windows, we wouldn't have anything to compare Mac's to
  12794. ______________________________________________________________________________
  12795. =========================================================================
  12796. Date:         Thu, 22 Sep 1994 07:02:53 -0400
  12797. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12798. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12799. From:         John Schettino <js12@GTE.COM>
  12800. Subject:      Re: How can I show a Progressbar during a calculation in
  12801.               FrontMost?
  12802.  
  12803. >I open a window - start a script located in the window - the script is
  12804. >changing the "setting of gauge "progress"" - but no changes are done to the
  12805. >window until the script has been finished. What do I have to do?
  12806. >
  12807. >open window "abc"
  12808. >tell window "abc" to DoCalc()
  12809.  
  12810. -- do this any time you want to update a window element
  12811. draw gauge "progress" of window "abc"
  12812.  
  12813.  
  12814. - john
  12815.  
  12816. -----------------------------------------
  12817. js12@gte.com             GTE Laboratories
  12818. John Schettino                Waltham, MA
  12819. =========================================================================
  12820. Date:         Thu, 22 Sep 1994 07:25:56 -0500
  12821. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12822. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12823. From:         K J Fox <kjfox@MKE.AB.COM>
  12824. Subject:      2 questions - NSF mounts & FMpro Server
  12825.  
  12826. 2 questions:
  12827.  
  12828. 1.  Is there a way using AppleScript (some OSAX perhaps) to NSF mount a
  12829.     UNIX volume and share files using it?
  12830.  
  12831. 2.  Does anyone know if the Filemaker pro server is directly scriptable?
  12832.     We want to build a front-end using some script-aware thing (Facespan,
  12833.     HyperCard etc.) and pull records from a FMpro server's database without
  12834.     having to tunnel through FMpro on the user's machine.
  12835.  
  12836. Thanks in advance,
  12837. Ken
  12838.  
  12839.  
  12840. ________________________________________________________________________
  12841. Kenneth J. Fox         |     E-mail:  kjfox@mke.ab.com (pref)
  12842. Allen-Bradley Company  |      Phone:  414-382-3287 (V) 414-382-2742 (F)
  12843. Rockwell Int'l         |      Pager:  414-256-9702
  12844. Milwaukee, WI          |  Applelink:  FOX.K
  12845. =========================================================================
  12846. Date:         Thu, 22 Sep 1994 08:43:54 -0400
  12847. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12848. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12849. From:         Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
  12850. Subject:      Re: HTML list archive moving!
  12851.  
  12852. >  HyperCard remains my
  12853. >favorite prototyping environment.
  12854. >
  12855. I'd be very interested in learning how you use HC to prototype HTML dox.
  12856.  
  12857. =====================================================================
  12858. Dr. Frank Lowney, Director, Regional Teacher Education Center
  12859.                   System Administrator, The GC EduNET Project
  12860. CBX 034, School of Education
  12861. Georgia College, Milledgeville, GA 31061-0490
  12862. Voice: (912) 453-5121     FAX: (912) 453-6582
  12863. via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
  12864.         gcedunet.peachnet.edu
  12865. =====================================================================
  12866. =========================================================================
  12867. Date:         Thu, 22 Sep 1994 07:47:56 -0600
  12868. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12869. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12870. From:         Michael Wellems <mwellems@MIDWAY.UCHICAGO.EDU>
  12871. Subject:      Looking for Mac Print Screen Solution
  12872.  
  12873. I am building an interactive, and would really like the user to be able to
  12874. have a printout of the screen. Is there an external that can print the
  12875. screen? I don't see anything about this in the manuals.
  12876.  
  12877.      *    0        *
  12878.         /   \   *   *       Michael J. Wellems
  12879.  *    /       \             Adler Planetarium
  12880.   ----  _____  ----         1300 S. Lake Shore Dr.
  12881.   |_____| | |_____|         Chicago, Illinois 60605
  12882. =========================================================================
  12883. Date:         Thu, 22 Sep 1994 10:16:57 -0400
  12884. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12885. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12886. From:         Bill Kearney <wkearney@ACCESS.DIGEX.NET>
  12887. Subject:      DialogRunner author?
  12888.  
  12889. I use the Tao of AppleScript's dialog runner, or at least, I'm trying to use it.
  12890.  
  12891. It doesn't correctly support the return key.  I want and editable text
  12892. field that accepts multiple lines.  This requires allowing a return to be
  12893. entered in the field.  This is something the Mac toolbox allows.  The
  12894. RETURN is NOT the ENTER.  The Enter key is the only thing that's supposed
  12895. to invoke the Default button, not the Return.
  12896.  
  12897. I suppose it's a quick fix to make DialogRunner ignore the Return as the
  12898. default button.  But I can't reach the author, Chris Reed.  His AOL account
  12899. does not appear to function any longer.
  12900.  
  12901. If you know how to reach him or know of a better dialog handler for
  12902. AppleScript, please let me know.
  12903.  
  12904. Yes, I know FaceSpam would do this, but why should I make it slower and
  12905. HUGE just to get one dialog?
  12906.  
  12907. Thanks!
  12908.  
  12909. Bill
  12910.  
  12911. Bill Kearney      | wkearney@access.digex.net                | copyright 1994
  12912. Baltimore, MD USA | http://www.digex.net/~wkearney/          | W.G.Kearney
  12913. (410) 235-4574    | ftp://ftp.digex.net/pub/access/wkearney/ |
  12914. =========================================================================
  12915. Date:         Thu, 22 Sep 1994 08:51:38 -0800
  12916. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12917. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12918. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  12919. Subject:      Automating Printer Selection
  12920.  
  12921. Is there any way to reset your printer selection via AS? In other words, I'm
  12922. looking for something that would automate going into the chooser, choosing
  12923. 'LaserWriter' as the device, choosing the right zone, and choosing the right
  12924. printer name...
  12925.  
  12926. -roy
  12927. =========================================================================
  12928. Date:         Thu, 22 Sep 1994 12:54:54 -0400
  12929. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12930. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12931. From:         John Schettino <js12@GTE.COM>
  12932. Subject:      Eudora 2.1 notify osax
  12933.  
  12934. Many have posted that the 2.1 notify syntax was giving them problems...
  12935. I've taken the Eudora Notification osax that was on gaea and updated it so
  12936. it (almost) works correctly. The notification type is still not coming in
  12937. correctly, but at least now you can use the same syntax as shown under
  12938. Eudora 2.1's dictionary, and you *CAN* count messages!
  12939.  
  12940. Here's a code snippet from a WORKING 2.1 notify script:
  12941.  
  12942. on notice messages messageList -- respond to a Eudora Notification event
  12943.         local numnew
  12944.         set numnew to count messageList -- number of new messages to process
  12945. end notice
  12946.  
  12947. Just drop the osax into your scripting additions folder...
  12948.  
  12949. I used Aete Editor b4 to edit the aete in the osax Eudor Notification. The
  12950. new osax is called "Eudora Notification Rev 2" and is in the submissions
  12951. directory for now.
  12952.  
  12953. Enjoy.
  12954.  
  12955. PS: I had to fix it for work, so I had a good reason to dig in...
  12956. =========================================================================
  12957. Date:         Thu, 22 Sep 1994 10:09:27 -0800
  12958. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12959. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12960. From:         Kirk Stork <kastork@NPS.NAVY.MIL>
  12961. Subject:      Re: HTML list archive moving!
  12962.  
  12963. >>  HyperCard remains my
  12964. >>favorite prototyping environment.
  12965. >>
  12966. >I'd be very interested in learning how you use HC to prototype HTML dox.
  12967. >
  12968.  
  12969. I know of 3 ways to do HTML on the mac (apart from manually)
  12970.  
  12971. Simple HTML Editor - A Hypercard Stack
  12972. HTML Edit - A Hypercard Stand alone
  12973. BB Edit HTML extensions
  12974.  
  12975. I would be interested in finding out about other NON-Hypercard based HTML
  12976. Editors.
  12977.  
  12978. r/
  12979.  
  12980.    Kirk Stork
  12981. kastork@nps.navy.mil
  12982. =========================================================================
  12983. Date:         Thu, 22 Sep 1994 10:25:30 -0700
  12984. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12985. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  12986. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  12987. Subject:      Scriptable Finder Erase Command
  12988.  
  12989.    While working on some scriptable Finder glue for Frontier, I noticed an
  12990. oddity in the erase command in Scriptable Finder (version 1.2 of the Finder
  12991. Scripting Extension, as found in System 7.5).
  12992.  
  12993.    The command causes Finder to put up the usual pre-erase dialog.
  12994. [Note...this means you should activate (in AppleScript) or use a
  12995. bringToFront () (in Frontier) the Finder before sending it the erase
  12996. command...Finder does not use the notification manager for the task.]
  12997.  
  12998.    Finder returns the object specifier (reference) for the disk you erase.
  12999. The oddity arises if the user decides to rename the disk while erasing
  13000. it...the reference returned is to the disk *under its old name*.  Finder
  13001. also seems to access each mounted disk looking for one with that name,
  13002. before returning the "stale" reference.
  13003.  
  13004.    Use of erase in a script is perhaps marginal anyhow...with the above
  13005. notes you can script around some problems.  [One thing you might want to do
  13006. with the returned reference is use it to eject the disk.  Won't work if the
  13007. user renamed the disk.]
  13008.  
  13009.    --John
  13010.  
  13011. --
  13012. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13013. =========================================================================
  13014. Date:         Thu, 22 Sep 1994 17:35:17 -0400
  13015. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13016. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13017. From:         Howard White <hwhite@CCS.NEU.EDU>
  13018. Subject:      Eudora 2.1 Upgrade
  13019.  
  13020. Where is everyone getting the Eudora 2.1 upgrade from?
  13021.  
  13022.  
  13023. Howard White, PC Tech. Coor.
  13024. Northeastern University
  13025. Office of VP Information Services
  13026. 360 Huntington Ave
  13027. 275 Richards Hall
  13028. Boston, MA 02115
  13029.  
  13030. Office Phone:617-373-4275
  13031. Portable Phone:617-840-3881
  13032. FAX: 617-373-2054
  13033. http://h-white.acs.neu.edu/
  13034. =========================================================================
  13035. Date:         Thu, 22 Sep 1994 18:08:32 -0400
  13036. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13037. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13038. From:         Mark Duffield <duffiem@AA.WL.COM>
  13039. Subject:      Re: HTML list archive moving!
  13040. In-Reply-To:  Kirk Stork <kastork@NPS.NAVY.MIL> "Re: HTML list archive moving!"
  13041.               (Sep 22, 10:09am)
  13042.  
  13043. On Sep 22, 10:09am, Kirk Stork wrote:
  13044. > Subject: Re: HTML list archive moving!
  13045. > >>  HyperCard remains my
  13046. > >>favorite prototyping environment.
  13047. > >>
  13048. > >I'd be very interested in learning how you use HC to prototype HTML dox.
  13049. > >
  13050. >
  13051. > I know of 3 ways to do HTML on the mac (apart from manually)
  13052. >
  13053. > Simple HTML Editor - A Hypercard Stack
  13054. > HTML Edit - A Hypercard Stand alone
  13055. > BB Edit HTML extensions
  13056. >
  13057. > I would be interested in finding out about other NON-Hypercard based HTML
  13058. > Editors.
  13059. >
  13060. > r/
  13061. >
  13062. >    Kirk Stork
  13063. > kastork@nps.navy.mil
  13064. >-- End of excerpt from Kirk Stork
  13065.  
  13066. Alpha V5.93 ships with an HTML mode.  Give it a try!
  13067.  
  13068.  
  13069. --
  13070. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13071.  Mark J. Duffield                    | duffiem@aa.wl.com
  13072.  Sr. Systems Specialist              |
  13073.  Preclinical Scientific Computing    | MIME Spoken here.
  13074.  Parke Davis Pharmaceutical Research |
  13075.  Ann Arbor, MI  48105                |
  13076. =========================================================================
  13077. Date:         Thu, 22 Sep 1994 18:49:11 EDT
  13078. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13079. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13080. From:         "Andrew R. Mitchell" <mitchell@CIS.UMASSD.EDU>
  13081. Subject:      Apple Events & FileMaker Pro
  13082.  
  13083. First, let me explain what I'm doing. I run the Web Server for UMass Dartmouth.
  13084. I have written some scripts (Apple Script) to get information out of FileMaker
  13085. Pro. The purpose of these scripts is to allow students to view the course
  13086. catalog/course listings in a semi-custom (eventually fully-custom) manner.
  13087. In other words I'm creating lots of HTML documents on the fly.
  13088.  
  13089. I currently have working scripts, only the time taken to create the documents
  13090. is way to long (minutes instead of seconds). So now I am trying to convert
  13091. these scripts into either C/C++ or PASCAL code.
  13092.  
  13093. I have figured out how to send simple events like Do Menu and Do Script, but I
  13094. have yet to figure out how to get the data I need to perform the seaching I
  13095. need to do into FM Pro using Apple Events. If anyone out there could give me
  13096. some ideas and/or some sample code (C/C++/PASCAL) on how to build the
  13097. appropriate object records it would be much appreciated.
  13098.  
  13099. Thank you in advance for any help.
  13100.  
  13101. Andrew
  13102. -----------------------
  13103. mitchell@cis.umassd.edu
  13104. "Ours is not to wonder why, but instead to wonder why not!"
  13105. =========================================================================
  13106. Date:         Fri, 23 Sep 1994 11:09:51 +1200
  13107. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13108. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13109. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  13110. Subject:      Eudora settings
  13111.  
  13112. I'm having difficulty with changing Eudora settings via AppleScripts. I had
  13113. a look at the Eudora dictionary, but all it has is Settings, with no syntax
  13114. for how you change them.
  13115.  
  13116. Specifically, I'd like to change Immediate Send to Off, and change the
  13117. message window height to 90. (for all messages)
  13118.  
  13119.  
  13120. _________________________________________________________________________
  13121. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  13122. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  13123. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  13124. =========================================================================
  13125. Date:         Thu, 22 Sep 1994 18:25:55 -0500
  13126. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13127. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13128. From:         Charles Wiltgen <cwiltgen@MCS.COM>
  13129. Subject:      Re: HTML list archive moving!
  13130.  
  13131. >I would be interested in finding out about other NON-Hypercard based HTML
  13132. >Editors.
  13133.  
  13134. There is a read, honest-to-goodness HTML editor for the Mac.
  13135.  
  13136.    http://dragon.acadiau.ca:1667/~giles/HTML_Editor
  13137.  
  13138. It's at 1.0.  Please try it out and encourage the author to further develop it!
  13139.  
  13140.  
  13141. --
  13142. Charles Wiltgen    "Love is a snowmobile racing across the tundra and
  13143. cwiltgen@mcs.com    then suddenly it flips over, pinning you underneath.
  13144. (INTP)              At night, the ice weasels come." - Nietzsche (Groening)
  13145. World Wide Web      http://www.mcs.net/~cwiltgen
  13146. =========================================================================
  13147. Date:         Thu, 22 Sep 1994 20:06:12 -0400
  13148. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13149. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13150. From:         Jeff Boulter <boulter@BUCKNELL.EDU>
  13151. Subject:      Could someone look up how to export from PageMaker?
  13152.  
  13153. Sorry, my Scripting Guide is still a few weeks in the mail and I need to
  13154. write a script that will export some selected text as TEXT-ONLY.
  13155.  
  13156. Thanks again,
  13157.  
  13158. Jeff Boulter
  13159.  
  13160. --
  13161. Jeff Boulter    boulter@bucknell.edu  http://www.bucknell.edu/bucknellian/jeff
  13162. =========================================================================
  13163. Date:         Thu, 22 Sep 1994 17:51:40 -0800
  13164. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13165. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13166. From:         Brad Schrick <brad@APE.COM>
  13167. Subject:      Re: HTML Editors (was ...moving!)
  13168.  
  13169. >Alpha V5.93 ships with an HTML mode.  Give it a try!
  13170.  
  13171. Alpha V5 of ... what? -- tia, brad@ape.com
  13172. =========================================================================
  13173. Date:         Fri, 23 Sep 1994 13:59:00 +1200
  13174. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13175. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13176. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  13177.               NZ" <LDO@WAIKATO.AC.NZ>
  13178. Subject:      Re: Apple Events & FileMaker Pro
  13179.  
  13180. "Andrew R. Mitchell" <mitchell@CIS.UMASSD.EDU> writes:
  13181.  
  13182. >I currently have working [AppleScript] scripts, only the time taken to create
  13183. >the documents is way to long (minutes instead of seconds). So now I am trying
  13184. >to convert these scripts into either C/C++ or PASCAL code.
  13185. >
  13186. >I have figured out how to send simple events like Do Menu and Do Script, but I
  13187. >have yet to figure out how to get the data I need to perform the seaching I
  13188. >need to do into FM Pro using Apple Events. If anyone out there could give me
  13189. >some ideas and/or some sample code (C/C++/PASCAL) on how to build the
  13190. >appropriate object records it would be much appreciated.
  13191.  
  13192. My guess is, you won't see much of a speedup. I don't think you can build
  13193. AppleEvent structures much faster than AppleScript can (remember, AppleScript
  13194. scripts are already compiled). Judging from my own experience, I'd say most of
  13195. the holdup would be in FileMaker's handling of the AppleEvents.
  13196.  
  13197. The way to get the speedup would be to take FileMaker out of the equation.
  13198.  
  13199. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  13200. Info & Tech Services Division              fax: +64-7-838-4066
  13201. University of Waikato            electric mail: ldo@waikato.ac.nz
  13202. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  13203. =========================================================================
  13204. Date:         Thu, 22 Sep 1994 22:00:32 -0600
  13205. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13206. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13207. From:         Perry Smith <pedz@BGA.COM>
  13208. Subject:      Scriptable OCR
  13209.  
  13210. My dream is to take a credit card bill and fax it to myself.  Then have an
  13211. OCR program along with various support programs to convert the fax to text,
  13212. convert the text to a list of transactions and have the transactions
  13213. entered into Quicken.
  13214.  
  13215. So I figure the first step is to finish drinking my wine and the second
  13216. step is to get an OCR program that works with Applescript so that I can
  13217. automatically get it to convert the first and put the fields into records.
  13218. So to make a short question longer than it needs to be: is there any
  13219. recommendations for an OCR program that works with Applescript?
  13220.  
  13221. Thanks,
  13222.  
  13223. Perry Smith
  13224. pedz@bga.com
  13225. =========================================================================
  13226. Date:         Thu, 22 Sep 1994 22:18:16 -0500
  13227. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13228. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13229. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13230. Subject:      Re: HTML Editors (was ...moving!)
  13231. In-Reply-To:  Your message of "Thu, 22 Sep 94 17:51:40 -0900"
  13232.  
  13233. >>Alpha V5.93 ships with an HTML mode.  Give it a try!
  13234. >
  13235. >Alpha V5 of ... what? -- tia, brad@ape.com
  13236.  
  13237. Alpha, the Programming and LaTex editor. You'll find it at
  13238.  
  13239. ftp://cs.rice.edu//public/Alpha/Alpah.5.96.sit.bin
  13240.  
  13241. pf
  13242. =========================================================================
  13243. Date:         Thu, 22 Sep 1994 22:27:10 -0500
  13244. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13245. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13246. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13247. Subject:      Re: Eudora 2.1 Upgrade
  13248. In-Reply-To:  Your message of "Thu, 22 Sep 94 17:35:17 EDT"
  13249.  
  13250. Howard White asked...
  13251.  
  13252. >Where is everyone getting the Eudora 2.1 upgrade from?
  13253. >
  13254.  
  13255. ftp://ftp.qualcomm.com/quest/mac/eudora/2.1/
  13256. =========================================================================
  13257. Date:         Thu, 22 Sep 1994 22:29:42 -0800
  13258. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13259. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13260. From:         Brad Schrick <brad@APE.COM>
  13261. Subject:      Re: HTML Editors (was ...moving!)
  13262.  
  13263. >>Alpha V5 of ... what? -- tia, brad@ape.com
  13264. >
  13265. >Alpha, the Programming and LaTex editor. You'll find it at
  13266. >
  13267. >ftp://cs.rice.edu//public/Alpha/Alpah.5.96.sit.bin
  13268.  
  13269. Fred, you're a wonder.  I downloaded it and tried it, but I guess I'm in
  13270. cruising mode and need something that's more WYSIWYG, or I'll just work
  13271. with the text editors for now... I can see MacWeb becoming editable one
  13272. day, but John Hardin may want a life this incarnation...  thanks for
  13273. keeping track of so much stuff -- Brad, brad@ape.com
  13274. =========================================================================
  13275. Date:         Thu, 22 Sep 1994 23:22:46 -0800
  13276. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13277. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13278. From:         Preston Holmes <pholmes@UCSD.EDU>
  13279. Subject:      reloading the finder
  13280.  
  13281. the first part, quitting it, is easy.  But how do I reload it.
  13282.  
  13283. I'm trying to do this so that a document which the finder just changed the
  13284. type and creator of shows the proper icon.  I do this now by inactivating
  13285. then activating the finder through a control strip module.  But how do I do
  13286. this in a script (the restarting part).  Everything I try results in the
  13287. scripting system complaining that the finder is not an application.
  13288.  
  13289. BTW, is there another way of having the icon updated (utils like Filetyper
  13290. have no problem doing this).
  13291.  
  13292. Note the icon is updated fine if I just try to change creator (ie a
  13293. {"TEXT","ttxt"}->{"TEXT","MSWD"} works fine)
  13294.  
  13295. a solution to both would be great but an answer to the first will provide a
  13296. workaround...
  13297.  
  13298. -Preston
  13299.  
  13300.  
  13301. --
  13302. Preston Holmes                  (h)619-453-9209
  13303. Dept. of Neuroscience, UCSD
  13304. pholmes@ucsd.edu                 NeuroWeb: "http://salk.edu/NeuroWeb/"
  13305. =========================================================================
  13306. Date:         Fri, 23 Sep 1994 04:22:05 EDT
  13307. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13308. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13309. From:         Mike Alexander <Mike.Alexander@UMICH.EDU>
  13310. Subject:      Re: reloading the finder
  13311.  
  13312. >BTW, is there another way of having the icon updated (utils like Filetyper
  13313. >have no problem doing this).
  13314. >
  13315.  
  13316. Here's a Frontier script that refreshes all open Finder windows:
  13317.  
  13318.     with objectModel, Finder {
  13319.       update(get(window[all]))}
  13320.  
  13321. I have this in my OSAMenu folder for when the Finder gets confused.
  13322.  
  13323. The definition of update (provided by the Import AETE script in the
  13324. Commercial Developers suite) is as follows (the two lines starting with <
  13325. are comments which don't look right in plain ASCII):
  13326.  
  13327.     on update (obj) {
  13328.      <Update the display of the specified object(s) to match
  13329.      <their on-disk representation
  13330.       return (appleEvent (Finder.id, 'fndr', 'fupd', '----',
  13331.         Finder.finderObj (obj)))}
  13332.  
  13333. Finder.finderObj is a script I wrote which turns various things (like path
  13334. names) into object descriptors.  In this case it's a nop since you've
  13335. already got a list of object descriptors.
  13336.  
  13337. Doing this in AppleScript shouldn't be any harder than this.
  13338.  
  13339. Mike Alexander              Internet:       mta@umich.edu
  13340. University of Michigan      America Online: MAlexander
  13341. ITD - Research Systems      AppleLink:      UMICH
  13342. =========================================================================
  13343. Date:         Fri, 23 Sep 1994 19:47:16 +1000
  13344. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13345. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13346. From:         Danny Thomas <D.Thomas@VTHRC.UQ.EDU.AU>
  13347. Subject:      HTML WYSIWYG editor (was Re: HTML list archive moving!)
  13348.  
  13349. >>I would be interested in finding out about other NON-Hypercard based HTML
  13350. >>Editors.
  13351. >
  13352. >There is a read, honest-to-goodness HTML editor for the Mac.
  13353. >
  13354. >   http://dragon.acadiau.ca:1667/~giles/HTML_Editor
  13355. >
  13356. >It's at 1.0.  Please try it out and encourage the author to further
  13357. >develop it!
  13358.  
  13359. I must confess I didn't try it because as of a few months ago the WWW/HTML
  13360. FAQs clearly state something along the lines of: "none of the cute WYSIWFG
  13361. HTML editors on the Mac produce valid HTML"*. This applies for most Windows
  13362. stuff as well; at least that falling into the free/shareware category. By
  13363. all means try these out but before putting it up on your web-site I'd
  13364. recommend running the output through something like SoftQuad's HoTMetaL for
  13365. Windows (available for free). This loads an SGML description of the
  13366. language, ie easily updated to reflect changes. The people behind this
  13367. program have been in professional SGML market for several years, and I hope
  13368. that gives their products some credibility. Any problems reported should be
  13369. referred to the author of the Mac program you used and the feedback can
  13370. encourage further development. SoftQuad are considering the introduction of
  13371. a Macintosh version of HoTMetaL which, at a guess $100-300, appeals to a
  13372. segment of people, but it would be nice for some free/shareware
  13373. alternatives to exist as well. BTW I wasn't particularly enamoured by
  13374. HoTMetaL's interface, too much like a structured editor for my liking.
  13375.     Unfortunately HTML has also been a somewhat evolving target and the
  13376. clients also have their own unique interpretations and glitches. For
  13377. example, the first bit of HTML I tried didn't display properly on MacMosaic
  13378. 1.x or 2.00A6/8 or MacWeb. To be sure HoTMetaL pointed out several errors
  13379. in my hand-generated code, but correcting these so HoTMetaL accepted the
  13380. file and displayed it *as intended* didn't change the various ways the mac
  13381. clients showed it. I guess the conservative approach is to
  13382.    A: run any HTML thru HoTMetaL so at least it is conforming
  13383.    B: confirm that popular clients display it in an acceptable fashion.
  13384.       It doesn't have to be perfect, just good enough, but if that isn't
  13385.       possible consider alternative ways of coding the structure
  13386.       and/or modify your goals.
  13387. This maximizes your chance of the HTML working with both current clients
  13388. and new ones in the future which are likely to be more restrictive and also
  13389. conform closer to the 'standard'. It'll be nice when HTML+ (aka HTML 3)
  13390. gets standardized and there's enough clients around to make it a practical
  13391. choice.
  13392.  
  13393. cheers,
  13394. Danny Thomas  (D.Thomas@vthrc.uq.edu.au)
  13395.  
  13396. PS that initial FAQ quote probably doesn't refer to something like the
  13397. BBEdit additions which are non-WYSIWYG and essentially leave the author to
  13398. make thir own mistakes.
  13399.  
  13400.  
  13401. * unfortunately this blanket unecommendation didn't list which Mac programs
  13402. it was referring to, which versions produced buggy output nor what parts of
  13403. HTML were incorrectly recorded. I didn't feel like spending time to find
  13404. out.
  13405. =========================================================================
  13406. Date:         Fri, 23 Sep 1994 06:52:26 -0500
  13407. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13408. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13409. From:         Kiran Wagle <groo@NETCOM.COM>
  13410. Subject:      Re: HTML editing
  13411.  
  13412. On 09/22/94, Kirk Stork wrote:
  13413.  
  13414. > Simple HTML Editor - A Hypercard Stack
  13415. > HTML Edit - A Hypercard Stand alone
  13416. > BB Edit HTML extensions
  13417.  
  13418. > I would be interested in finding out about other NON-Hypercard based HTML
  13419.  
  13420. I have HTML Editor 1.0.0, by and (c) Rick Giles, found at NCSA.  It's not
  13421. small--1M on disk and 2M in memory (guess I'll have to break down and buy a
  13422. 4M SIMM for my new Q630 before I get a MacTV card :-)) but it looks really
  13423. nice--it'll show you a mockup with or without the tags showing, and it'll
  13424. pass the text to MacWeb or Mosaic too.  I've never edited any HTML pages
  13425. myself, tho.
  13426.  
  13427.  
  13428. --
  13429. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  13430. =========================================================================
  13431. Date:         Fri, 23 Sep 1994 07:42:09 -0400
  13432. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13433. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
  13434. From:         Mark Duffield <duffiem@AA.WL.COM>
  13435. Subject:      Re: HTML Editors (was ...moving!)
  13436. In-Reply-To:  Brad Schrick <br